gdb - Local mods (compile)
[dragonfly.git] / contrib / gdb-7 / gdb / common / common-defs.h
1 /* Common definitions.
2
3    Copyright (C) 1986-2015 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 "libgnu/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 #include <errno.h>
37 #include "ansidecl.h"
38 #include "libiberty.h"
39 #include "gdb/signals.h"
40 #include "gdb_locale.h"
41 #include "ptid.h"
42 #include "common-types.h"
43 #include "common-utils.h"
44 #include "gdb_assert.h"
45 #include "errors.h"
46 #include "print-utils.h"
47 #include "common-debug.h"
48 #include "cleanups.h"
49 #include "common-exceptions.h"
50
51 #ifdef __cplusplus
52 # define EXTERN_C extern "C"
53 # define EXTERN_C_PUSH extern "C" {
54 # define EXTERN_C_POP }
55 #else
56 # define EXTERN_C extern
57 # define EXTERN_C_PUSH
58 # define EXTERN_C_POP
59 #endif
60
61 #endif /* COMMON_DEFS_H */