X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=INTERN.h;h=22e42c5b97817e31fae5a3985a86ab3ea1336a2b;hb=c2267164204a961273c71c9c103831895724b0b1;hp=ba71c2f7adf0deaae96fce612165878e30f98192;hpb=9607fc9c489d4095e3baa795d7ead7acba96137d;p=p5sagit%2Fp5-mst-13.2.git diff --git a/INTERN.h b/INTERN.h index ba71c2f..22e42c5 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