summaryrefslogtreecommitdiffstats
path: root/gcc/config/pa/pa-hpux11.h
diff options
context:
space:
mode:
authordanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>2003-08-08 02:27:35 +0000
committerdanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>2003-08-08 02:27:35 +0000
commitff04588f09aec60a07a5225f013e76e866f27e74 (patch)
tree977f1d8b8ae5fca60b96f8a34db58b96a24706e5 /gcc/config/pa/pa-hpux11.h
parentd99ec1c61842562fcbdcf8d7d842361a2935eba3 (diff)
downloadppe42-gcc-ff04588f09aec60a07a5225f013e76e866f27e74.tar.gz
ppe42-gcc-ff04588f09aec60a07a5225f013e76e866f27e74.zip
PR c++/11712
* pa-hpux.h, pa-hpux10.h, pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define __STDC_EXT__ when using C++ dialect. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70240 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/pa/pa-hpux11.h')
-rw-r--r--gcc/config/pa/pa-hpux11.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/config/pa/pa-hpux11.h b/gcc/config/pa/pa-hpux11.h
index 5a35ace408b..ebf3dc4ec33 100644
--- a/gcc/config/pa/pa-hpux11.h
+++ b/gcc/config/pa/pa-hpux11.h
@@ -18,6 +18,12 @@ along with GNU CC; see the file COPYING. If not, write to
the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
+/* GCC always defines __STDC__. HP C++ compilers don't define it. This
+ causes trouble when sys/stdsyms.h is included. As a work around,
+ we define __STDC_EXT__. A similar situation exists with respect to
+ the definition of __cplusplus. We define _INCLUDE_LONGLONG
+ to prevent nlist.h from defining __STDC_32_MODE__ (no longlong
+ support). */
#undef TARGET_OS_CPP_BUILTINS
#define TARGET_OS_CPP_BUILTINS() \
do \
@@ -34,6 +40,7 @@ Boston, MA 02111-1307, USA. */
{ \
builtin_define ("_HPUX_SOURCE"); \
builtin_define ("_INCLUDE_LONGLONG"); \
+ builtin_define ("__STDC_EXT__"); \
} \
else \
{ \
OpenPOWER on IntegriCloud