diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/misc.h | 14 | ||||
-rw-r--r-- | include/os.h | 12 | ||||
-rw-r--r-- | include/xorg-server.h.in | 3 |
3 files changed, 6 insertions, 23 deletions
diff --git a/include/misc.h b/include/misc.h index 5944a427f..199ad5da2 100644 --- a/include/misc.h +++ b/include/misc.h @@ -83,11 +83,7 @@ extern unsigned long serverGeneration; #include <X11/X.h> #include <X11/Xdefs.h> -#ifndef IN_MODULE -#ifndef NULL #include <stddef.h> -#endif -#endif #ifndef MAXSCREENS #define MAXSCREENS 16 @@ -115,9 +111,7 @@ typedef struct _CallbackList *CallbackListPtr; /* also in dix.h */ typedef struct _xReq *xReqPtr; #include "os.h" /* for ALLOCATE_LOCAL and DEALLOCATE_LOCAL */ -#ifndef IN_MODULE #include <X11/Xfuncs.h> /* for bcopy, bzero, and bcmp */ -#endif #define NullBox ((BoxPtr)0) #define MILLI_PER_MIN (1000 * 60) @@ -145,12 +139,10 @@ typedef struct _xReq *xReqPtr; #define min(a, b) (((a) < (b)) ? (a) : (b)) #define max(a, b) (((a) > (b)) ? (a) : (b)) -#ifndef IN_MODULE /* abs() is a function, not a macro; include the file declaring * it in case we haven't done that yet. - */ + */ #include <stdlib.h> -#endif /* IN_MODULE */ #ifndef Fabs #define Fabs(a) ((a) > 0.0 ? (a) : -(a)) /* floating absolute value */ #endif @@ -166,7 +158,6 @@ typedef struct _xReq *xReqPtr; */ #define lowbit(x) ((x) & (~(x) + 1)) -#ifndef IN_MODULE /* XXX Not for modules */ #include <limits.h> #if !defined(MAXSHORT) || !defined(MINSHORT) || \ @@ -177,7 +168,6 @@ typedef struct _xReq *xReqPtr; */ #include <math.h> -#endif #undef MAXSHORT #define MAXSHORT SHRT_MAX #undef MINSHORT @@ -189,7 +179,7 @@ typedef struct _xReq *xReqPtr; #include <assert.h> #include <ctype.h> -#include <stdio.h> /* for fopen, etc... */ +#include <stdio.h> /* for fopen, etc... */ #endif diff --git a/include/os.h b/include/os.h index 0885bb298..e16839c74 100644 --- a/include/os.h +++ b/include/os.h @@ -88,12 +88,8 @@ typedef struct _NewClientRec *NewClientPtr; #define xnfstrdup(s) XNFstrdup(s) #endif -#ifndef IN_MODULE -#ifdef __SCO__ #include <stdio.h> -#endif -#include <string.h> -#endif +#include <stdarg.h> /* have to put $(SIGNAL_DEFINES) in DEFINES in Imakefile to get this right */ #ifdef SIGNALRETURNSINT @@ -517,10 +513,4 @@ extern void ErrorF(const char *f, ...) _printf_attribute(1,2); extern void Error(char *str); extern void LogPrintMarkers(void); -#if defined(NEED_SNPRINTF) && !defined(IN_MODULE) -extern int snprintf(char *str, size_t size, const char *format, ...) - _printf_attribute(3,4); -extern int vsnprintf(char *str, size_t size, const char *format, va_list ap); -#endif - #endif /* OS_H */ diff --git a/include/xorg-server.h.in b/include/xorg-server.h.in index f31d98a77..48196d8b6 100644 --- a/include/xorg-server.h.in +++ b/include/xorg-server.h.in @@ -235,4 +235,7 @@ /* System has wscons console */ #undef WSCONS_SUPPORT +/* Loadable XFree86 server awesomeness */ +#undef XFree86LOADER + #endif /* _XORG_SERVER_H_ */ |