undefine X11_BUILD after hack.h or config.h
So as not to complicate any onefile efforts by leaving it defined.
This commit is contained in:
@@ -80,6 +80,7 @@
|
||||
#define X11_BUILD
|
||||
#include "config.h" /* #define for const for non __STDC__ compilers */
|
||||
#undef X11_BUILD
|
||||
|
||||
#include "lint.h" /* for nethack's nhStr() macro */
|
||||
#include "winX.h" /* to make sure protoypes match corresponding functions */
|
||||
|
||||
|
||||
@@ -16,8 +16,6 @@
|
||||
#define SHORT_FILENAMES
|
||||
#endif
|
||||
|
||||
#define X11_BUILD
|
||||
|
||||
#include <X11/Intrinsic.h>
|
||||
#include <X11/StringDefs.h>
|
||||
#include <X11/Shell.h>
|
||||
@@ -48,7 +46,10 @@
|
||||
#undef SHORT_FILENAMES /* hack.h will reset via global.h if necessary */
|
||||
#endif
|
||||
|
||||
#define X11_BUILD
|
||||
#include "hack.h"
|
||||
#undef X11_BUILD
|
||||
|
||||
#include "winX.h"
|
||||
#include "dlb.h"
|
||||
#include "xwindow.h"
|
||||
|
||||
@@ -34,8 +34,9 @@
|
||||
#endif
|
||||
|
||||
#define X11_BUILD
|
||||
|
||||
#include "hack.h"
|
||||
#undef X11_BUILD
|
||||
|
||||
#include "winX.h"
|
||||
|
||||
static void menu_size_change_handler(Widget, XtPointer, XEvent *,
|
||||
|
||||
@@ -35,8 +35,9 @@
|
||||
#endif
|
||||
|
||||
#define X11_BUILD
|
||||
|
||||
#include "hack.h"
|
||||
#undef X11_BUILD
|
||||
|
||||
#include "func_tab.h"
|
||||
#include "winX.h"
|
||||
|
||||
|
||||
@@ -29,8 +29,9 @@
|
||||
#endif
|
||||
|
||||
#define X11_BUILD
|
||||
|
||||
#include "hack.h"
|
||||
#undef X11_BUILD
|
||||
|
||||
#include "winX.h"
|
||||
#include "xwindow.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user