Automatic date update in version.in
[binutils-gdb.git] / sim / common / defs.h
blobc8658f799c42db6a57ad671ce22f05c973b81e0c
1 /* The configure generated header settings.
3 Copyright 2002-2024 Free Software Foundation, Inc.
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 3 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>. */
18 /* This file should be included by every .c file before any other header. */
20 #ifndef DEFS_H
21 #define DEFS_H
23 #ifdef HAVE_CONFIG_H
25 /* Include gnulib's various configure tests. */
26 #include "gnulib/config.h"
28 /* This comes from gnulib. Export it until ansidecl.h handles it. */
29 #define ATTRIBUTE_FALLTHROUGH _GL_ATTRIBUTE_FALLTHROUGH
31 /* Reset macros that our config.h will provide. */
32 #undef PACKAGE
33 #undef PACKAGE_BUGREPORT
34 #undef PACKAGE_NAME
35 #undef PACKAGE_STRING
36 #undef PACKAGE_TARNAME
37 #undef PACKAGE_URL
38 #undef PACKAGE_VERSION
40 /* Include common sim's various configure tests. */
41 #ifndef SIM_TOPDIR_BUILD
42 #include "../config.h"
43 #else
44 #include "config.h"
45 #endif
47 #endif
49 #endif