aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-cppbuiltin.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2003-06-07 22:18:13 +0000
committerRichard Henderson <rth@redhat.com>2003-06-07 22:18:13 +0000
commit71feb187c87bcc547ce636c76f48c50781211634 (patch)
treea98d5d75030fa00a50306f5738ba21b837caeb35 /gcc/c-cppbuiltin.c
parent1752ec4d104f1aac472276043c32678865087986 (diff)
* c-cppbuiltin.c (c_cpp_builtins): Define __EXCEPTIONS for C also.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@67605 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-cppbuiltin.c')
-rw-r--r--gcc/c-cppbuiltin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/c-cppbuiltin.c b/gcc/c-cppbuiltin.c
index c97ced3caef..3679f869d04 100644
--- a/gcc/c-cppbuiltin.c
+++ b/gcc/c-cppbuiltin.c
@@ -307,11 +307,11 @@ c_cpp_builtins (pfile)
cpp_define (pfile, "__GXX_WEAK__=1");
else
cpp_define (pfile, "__GXX_WEAK__=0");
- if (flag_exceptions)
- cpp_define (pfile, "__EXCEPTIONS");
if (warn_deprecated)
cpp_define (pfile, "__DEPRECATED");
}
+ if (flag_exceptions)
+ cpp_define (pfile, "__EXCEPTIONS");
/* represents the C++ ABI version, always defined so it can be used while
preprocessing C and assembler. */