diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-02-19 12:03:52 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-02-19 12:03:52 -0800 |
commit | 424b67ad03fafdb0d6caf2e9bf5a103e9717e71f (patch) | |
tree | 157df1b73d5f35709af4e6c8bdfab1323f41cdd7 | |
parent | f6dff7d9285cf5b328d1163e102eeb1234450aa1 (diff) |
I can't find any evidence this was ever defined, should only have
been needed for odd-ball pre-C89 compilers.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | src/globals.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/src/globals.c b/src/globals.c index be252f5..ed3df9a 100644 --- a/src/globals.c +++ b/src/globals.c @@ -34,26 +34,11 @@ from The Open Group. #endif #include <X11/Xlib.h> #include <X11/extensions/Xext.h> -#include <stddef.h> /* for definition of NULL */ - -/* - * If possible, it is useful to have the global data default to a null value. - * Some shared library implementations are *much* happier if there isn't any - * global initialized data. - */ -#ifdef NULL_NOT_ZERO /* then need to initialize */ -#define SetZero(t,var,z) t var = z -#else -#define SetZero(t,var,z) t var -#endif - -#define ZEROINIT(t,var,val) SetZero (t, var, val) - /* * Error handlers; used to be in XlibInt.c */ -ZEROINIT (XextErrorHandler, _XExtensionErrorFunction, NULL); +XextErrorHandler _XExtensionErrorFunction; /* * NOTE: any additional external definition NEED |