summaryrefslogtreecommitdiff
path: root/INTERN.h
diff options
context:
space:
mode:
authorNick Ing-Simmons <nik@tiuk.ti.com>1997-10-31 23:54:01 +0000
committerNick Ing-Simmons <nik@tiuk.ti.com>1997-10-31 23:54:01 +0000
commitf0f333f45536802923a359d930d1dcfd5b4589ea (patch)
tree6f746f4b9cda56e2432754d6816467676c601820 /INTERN.h
parent8ac853655d9b744749adcb9687c13d99cdd6e9fb (diff)
downloadperl-f0f333f45536802923a359d930d1dcfd5b4589ea.tar.gz
Further ANSI changes now builds and passes (most) tests
with gcc -x c++. p4raw-id: //depot/ansiperl@196
Diffstat (limited to 'INTERN.h')
-rw-r--r--INTERN.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/INTERN.h b/INTERN.h
index ba71c2f7ad..22e42c5b97 100644
--- a/INTERN.h
+++ b/INTERN.h
@@ -23,11 +23,18 @@
# define EXTCONST globaldef {"$GLOBAL_RO_VARS"} readonly
# define dEXTCONST globaldef {"$GLOBAL_RO_VARS"} readonly
#else
+# ifdef __cplusplus
+# define EXT
+# define dEXT
+# define EXTCONST extern const
+# define dEXTCONST const
+#else
# define EXT
# define dEXT
# define EXTCONST const
# define dEXTCONST const
#endif
+#endif
#undef INIT
#define INIT(x) = x