ports/devel/gdb/files/patch-gdb_gdbsupport_common-defs.h
Luca Pizzamiglio 2c2f3a710a devel/gdb: Update to 10.1
Reviewed by:	jhb@
Differential Revision:	https://reviews.freebsd.org/D27040
2020-12-04 23:19:27 +00:00

18 lines
628 B
C

--- gdbsupport/common-defs.h.orig 2020-02-08 04:50:14.000000000 -0800
+++ gdbsupport/common-defs.h 2020-02-27 10:06:21.899297000 -0800
@@ -55,9 +55,15 @@
Must do this before including any system header, since other system
headers may include stdint.h/inttypes.h. */
+#ifndef __STDC_CONSTANT_MACROS
#define __STDC_CONSTANT_MACROS 1
+#endif
+#ifndef __STDC_LIMIT_MACROS
#define __STDC_LIMIT_MACROS 1
+#endif
+#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS 1
+#endif
/* Some distros enable _FORTIFY_SOURCE by default, which on occasion
has caused build failures with -Wunused-result when a patch is