diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-01-24 22:55:18 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-01-24 22:56:51 -0800 |
commit | 3c9e50cb0bf42f42f0be460e89045257c7efc480 (patch) | |
tree | 728928e8473fc778f9c6f0149e35c0063ae30803 /b4light.c | |
parent | cff32361b4a901a131b23c01f7592779358f4141 (diff) |
Remove dependency on libXaw
The only thing from libXaw that isn't in #ifdef NOTDEF is a reference
to the ZERO #define, which is trivially replaced - no point requiring
an entire library for a single constant #define.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'b4light.c')
-rw-r--r-- | b4light.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -34,13 +34,17 @@ in this Software without prior written authorization from the X Consortium. #include <X11/Shell.h> #ifdef NOTDEF #include <X11/Xaw/Label.h> -#endif #include <X11/Xaw/Cardinals.h> +#endif #include <X11/extensions/scrnsaver.h> #include <X11/Xcms.h> #include <stdlib.h> #include <time.h> +#ifndef ZERO +# define ZERO ((Cardinal)0) +#endif + #ifdef NOTDEF static void quit (Widget w, XEvent *event, String *params, Cardinal *num_params); |