sync code with last improvements from OpenBSD

This commit is contained in:
purplerain 2023-10-26 22:50:19 +00:00
parent e1ec829e63
commit 68fa196282
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
30 changed files with 268 additions and 1060 deletions

View file

@ -73,6 +73,7 @@
# ifdef AMIGA
# include "amigax.h"
# else /* not AMIGA */
# include <X11/Xfuncproto.h>
# include <X11/Xlib.h>
# include <X11/Xutil.h>
# endif /* not AMIGA */
@ -275,7 +276,12 @@ typedef struct {
/* macros for forward declarations of functions with prototypes */
#define FUNC(f, t, p) extern t f p
#ifndef _X_EXPORT
# define _X_EXPORT
# define _X_HIDDEN
#endif
#define FUNC(f, t, p) extern _X_EXPORT t f p
#define HFUNC(f, t, p) extern _X_HIDDEN t f p
#define LFUNC(f, t, p) static t f p