projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gdb: Convert language la_value_print field to a method
[deliverable/binutils-gdb.git]
/
gdbsupport
/
common-defs.h
diff --git
a/gdbsupport/common-defs.h
b/gdbsupport/common-defs.h
index 027bf099c1a51e0d412822f3ba01c77f8656784e..d3f5eafa4555fb014d2f9140127a6fb846d6574c 100644
(file)
--- a/
gdbsupport/common-defs.h
+++ b/
gdbsupport/common-defs.h
@@
-20,20
+20,6
@@
#ifndef COMMON_COMMON_DEFS_H
#define COMMON_COMMON_DEFS_H
#ifndef COMMON_COMMON_DEFS_H
#define COMMON_COMMON_DEFS_H
-#ifdef GDBSERVER
-
-#include <build-gnulib-gdbserver/config.h>
-
-#undef PACKAGE_NAME
-#undef PACKAGE
-#undef PACKAGE_VERSION
-#undef PACKAGE_STRING
-#undef PACKAGE_TARNAME
-
-#include <config.h>
-
-#else /* GDBSERVER */
-
#include <gdbsupport/config.h>
#undef PACKAGE_NAME
#include <gdbsupport/config.h>
#undef PACKAGE_NAME
@@
-44,8
+30,6
@@
#include "gnulib/config.h"
#include "gnulib/config.h"
-#endif /* GDBSERVER */
-
/* From:
https://www.gnu.org/software/gnulib/manual/html_node/stdint_002eh.html
/* From:
https://www.gnu.org/software/gnulib/manual/html_node/stdint_002eh.html
@@
-100,7
+84,12
@@
#include <stdarg.h>
#include <stdio.h>
#include <stdarg.h>
#include <stdio.h>
+
+/* Include both cstdlib and stdlib.h to ensure we have standard functions
+ defined both in the std:: namespace and in the global namespace. */
+#include <cstdlib>
#include <stdlib.h>
#include <stdlib.h>
+
#include <stddef.h>
#include <stdint.h>
#include <string.h>
#include <stddef.h>
#include <stdint.h>
#include <string.h>
@@
-108,7
+97,9
@@
#include <strings.h> /* for strcasecmp and strncasecmp */
#endif
#include <errno.h>
#include <strings.h> /* for strcasecmp and strncasecmp */
#endif
#include <errno.h>
+#if HAVE_ALLOCA_H
#include <alloca.h>
#include <alloca.h>
+#endif
#include "ansidecl.h"
/* This is defined by ansidecl.h, but we prefer gnulib's version. On
#include "ansidecl.h"
/* This is defined by ansidecl.h, but we prefer gnulib's version. On
This page took
0.024348 seconds
and
4
git commands to generate.