summaryrefslogtreecommitdiff
path: root/src/alloc.c
diff options
context:
space:
mode:
authorYuuki Harano <masm+github@masm11.me>2021-08-16 23:01:11 +0900
committerYuuki Harano <masm+github@masm11.me>2021-08-16 23:01:11 +0900
commit4c49ec7f865bdad1629d2f125f71f4e506b258f2 (patch)
treea1e9ba36a90bf9b8e16118e7f99b2d4e7e7b884e /src/alloc.c
parent2e561ab2276820896e6c1dd13406bfe9047bd1dc (diff)
downloademacs-4c49ec7f865bdad1629d2f125f71f4e506b258f2.tar.gz
Make PGTK's additions conditioinal
* src/.gdbinit: Make them enclosed in condition. * src/alloc.c: Define defined_HAVE_PGTK and make it externally visible.
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/alloc.c b/src/alloc.c
index a17488ee1d0..ff3670eeb1d 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -7709,6 +7709,12 @@ enum defined_HAVE_X_WINDOWS { defined_HAVE_X_WINDOWS = true };
enum defined_HAVE_X_WINDOWS { defined_HAVE_X_WINDOWS = false };
#endif
+#ifdef HAVE_PGTK
+enum defined_HAVE_PGTK { defined_HAVE_PGTK = true };
+#else
+enum defined_HAVE_PGTK { defined_HAVE_PGTK = false };
+#endif
+
/* When compiled with GCC, GDB might say "No enum type named
pvec_type" if we don't have at least one symbol with that type, and
then xbacktrace could fail. Similarly for the other enums and
@@ -7728,5 +7734,6 @@ union
enum More_Lisp_Bits More_Lisp_Bits;
enum pvec_type pvec_type;
enum defined_HAVE_X_WINDOWS defined_HAVE_X_WINDOWS;
+ enum defined_HAVE_PGTK defined_HAVE_PGTK;
} const EXTERNALLY_VISIBLE gdb_make_enums_visible = {0};
#endif /* __GNUC__ */