diff options
author | Pedro Alves <palves@redhat.com> | 2016-10-18 20:48:37 +0100 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2016-10-18 20:48:37 +0100 |
commit | f6abaf7a4088dc9a5d73ee2233246347af9181d5 (patch) | |
tree | c3c367cee331f054387c3d356d8f4e2f8aebb305 /gdb/cli/cli-script.c | |
parent | 49e4877c5487dc34edf414bb0f1125ce1b71e08b (diff) | |
download | gdb-f6abaf7a4088dc9a5d73ee2233246347af9181d5.zip gdb-f6abaf7a4088dc9a5d73ee2233246347af9181d5.tar.gz gdb-f6abaf7a4088dc9a5d73ee2233246347af9181d5.tar.bz2 |
gdb: no longer define __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS
My gnulib fix at:
https://lists.gnu.org/archive/html/bug-gnulib/2015-11/msg00010.html
was merged upstream meanwhile and our gnulib copy now includes it.
As a concidence, Kevin was telling me today that these macros are
causing a build problem on FreeBSD:
common/common-defs.h:47:0: error: "__STDC_CONSTANT_MACROS" redefined [-Werror]
#define __STDC_CONSTANT_MACROS 1
/usr/include/sys/cdefs.h:408:0: note: this is the location of the previous definition
#define __STDC_CONSTANT_MACROS
(and a similar error for __STDC_LIMIT_MACROS)
The problem seems to be that we should be defining these input macros
before including any system header, but, we're not.
So let's just revert e063da67902e ([C++] Define __STDC_CONSTANT_MACROS
/ __STDC_LIMIT_MACROS for stdint.h). If this causes a problem
somewhere, we can re-define the macros higher up in the file, before
system headers are included.
gdb/ChangeLog:
2016-10-18 Pedro Alves <palves@redhat.com>
* common/common-defs.h (__STDC_CONSTANT_MACROS)
(__STDC_LIMIT_MACROS): Delete.
Diffstat (limited to 'gdb/cli/cli-script.c')
0 files changed, 0 insertions, 0 deletions