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:
nhmall
2023-02-01 14:04:20 -05:00
parent d4a111083a
commit 3214335bb5
5 changed files with 10 additions and 5 deletions

View File

@@ -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 */

View File

@@ -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"

View File

@@ -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 *,

View File

@@ -35,8 +35,9 @@
#endif
#define X11_BUILD
#include "hack.h"
#undef X11_BUILD
#include "func_tab.h"
#include "winX.h"

View File

@@ -29,8 +29,9 @@
#endif
#define X11_BUILD
#include "hack.h"
#undef X11_BUILD
#include "winX.h"
#include "xwindow.h"