gdb: no longer define __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS
[deliverable/binutils-gdb.git] / gdb / common / common-defs.h
1 /* Common definitions.
2
3 Copyright (C) 1986-2016 Free Software Foundation, Inc.
4
5 This file is part of GDB.
6
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.
11
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.
16
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/>. */
19
20 #ifndef COMMON_DEFS_H
21 #define COMMON_DEFS_H
22
23 #include "config.h"
24 #ifdef GDBSERVER
25 #include "build-gnulib-gdbserver/config.h"
26 #else
27 #include "build-gnulib/config.h"
28 #endif
29
30 #include <stdarg.h>
31 #include <stdio.h>
32 #include <stdlib.h>
33 #include <stddef.h>
34 #include <stdint.h>
35 #include <string.h>
36 #ifdef HAVE_STRINGS_H
37 #include <strings.h> /* for strcasecmp and strncasecmp */
38 #endif
39 #include <errno.h>
40 #include <alloca.h>
41
42 #include "ansidecl.h"
43 /* This is defined by ansidecl.h, but we prefer gnulib's version. On
44 MinGW, gnulib might enable __USE_MINGW_ANSI_STDIO, which may or not
45 require use of attribute gnu_printf instead of printf. gnulib
46 checks that at configure time. Since _GL_ATTRIBUTE_FORMAT_PRINTF
47 is compatible with ATTRIBUTE_PRINTF, simply use it. */
48 #undef ATTRIBUTE_PRINTF
49 #define ATTRIBUTE_PRINTF _GL_ATTRIBUTE_FORMAT_PRINTF
50
51 #include "libiberty.h"
52 #include "pathmax.h"
53 #include "gdb/signals.h"
54 #include "gdb_locale.h"
55 #include "ptid.h"
56 #include "common-types.h"
57 #include "common-utils.h"
58 #include "gdb_assert.h"
59 #include "errors.h"
60 #include "print-utils.h"
61 #include "common-debug.h"
62 #include "cleanups.h"
63 #include "common-exceptions.h"
64
65 #define EXTERN_C extern "C"
66 #define EXTERN_C_PUSH extern "C" {
67 #define EXTERN_C_POP }
68
69 /* Pull in gdb::unique_ptr and gdb::unique_xmalloc_ptr. */
70 #include "common/gdb_unique_ptr.h"
71
72 #endif /* COMMON_DEFS_H */
This page took 0.042233 seconds and 5 git commands to generate.