3 * Copyright (c) 1991-1997, Larry Wall
5 * You may distribute under the terms of either the GNU General Public
6 * License or the Artistic License, as specified in the README file.
11 * EXT designates a global var which is defined in perl.h
12 * dEXT designates a global var which is defined in another
13 * file, so we can't count on finding it in perl.h
14 * (this practice should be avoided).
20 #if defined(VMS) && !defined(__GNUC__)
21 # define EXT globalref
22 # define dEXT globaldef {"$GLOBAL_RW_VARS"} noshare
23 # define EXTCONST globalref
24 # define dEXTCONST globaldef {"$GLOBAL_RO_VARS"} readonly
26 # if defined(_MSC_VER) && defined(_WIN32)
28 # define EXT __declspec(dllexport)
30 # define EXTCONST __declspec(dllexport) const
31 # define dEXTCONST const
33 # if defined(__cplusplus)
34 # define EXT extern __declspec(dllimport)
36 # define EXTCONST extern __declspec(dllimport) const
37 # define dEXTCONST const
39 # define EXT __declspec(dllimport)
41 # define EXTCONST __declspec(dllimport) const
42 # define dEXTCONST const
48 # define EXTCONST extern const
49 # define dEXTCONST const