3 Copyright (C) 1986-2016 Free Software Foundation, Inc.
5 This file is part of GDB.
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program. If not, see <http://www.gnu.org/licenses/>. */
25 #include "build-gnulib-gdbserver/config.h"
27 #include "build-gnulib/config.h"
36 https://www.gnu.org/software/gnulib/manual/html_node/stdint_002eh.html
38 "On some hosts that predate C++11, when using C++ one must define
39 __STDC_CONSTANT_MACROS to make visible the definitions of constant
40 macros such as INTMAX_C, and one must define __STDC_LIMIT_MACROS to
41 make visible the definitions of limit macros such as INTMAX_MAX."
43 gnulib doesn't fix this for us correctly yet. See:
44 https://lists.gnu.org/archive/html/bug-gnulib/2015-11/msg00004.html
46 Meanwhile, explicitly define these ourselves, as C99 intended. */
47 #define __STDC_CONSTANT_MACROS 1
48 #define __STDC_LIMIT_MACROS 1
56 /* This is defined by ansidecl.h, but we prefer gnulib's version. On
57 MinGW, gnulib might enable __USE_MINGW_ANSI_STDIO, which may or not
58 require use of attribute gnu_printf instead of printf. gnulib
59 checks that at configure time. Since _GL_ATTRIBUTE_FORMAT_PRINTF
60 is compatible with ATTRIBUTE_PRINTF, simply use it. */
61 #undef ATTRIBUTE_PRINTF
62 #define ATTRIBUTE_PRINTF _GL_ATTRIBUTE_FORMAT_PRINTF
64 #include "libiberty.h"
66 #include "gdb/signals.h"
67 #include "gdb_locale.h"
69 #include "common-types.h"
70 #include "common-utils.h"
71 #include "gdb_assert.h"
73 #include "print-utils.h"
74 #include "common-debug.h"
76 #include "common-exceptions.h"
79 # define EXTERN_C extern "C"
80 # define EXTERN_C_PUSH extern "C" {
81 # define EXTERN_C_POP }
83 # define EXTERN_C extern
84 # define EXTERN_C_PUSH
88 #endif /* COMMON_DEFS_H */
This page took 0.042825 seconds and 4 git commands to generate.