This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Eliminate Alpha warnings
[perl5.git] / EXTERN.h
CommitLineData
a0d0e21e 1/* EXTERN.h
a687059c 2 *
9607fc9c 3 * Copyright (c) 1991-1997, Larry Wall
a687059c 4 *
132b68a5
LW
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.
8d063cd8 7 *
8d063cd8
LW
8 */
9
4633a7c4
LW
10/*
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).
15 */
8d063cd8 16#undef EXT
4633a7c4 17#undef dEXT
36477c24 18#undef EXTCONST
19#undef dEXTCONST
4633a7c4
LW
20#if defined(VMS) && !defined(__GNUC__)
21# define EXT globalref
22# define dEXT globaldef {"$GLOBAL_RW_VARS"} noshare
36477c24 23# define EXTCONST globalref
24# define dEXTCONST globaldef {"$GLOBAL_RO_VARS"} readonly
4633a7c4 25#else
54310121 26# if defined(_MSC_VER) && defined(_WIN32)
27# ifdef PERLDLL
28# define EXT __declspec(dllexport)
29# define dEXT
30# define EXTCONST __declspec(dllexport) const
31# define dEXTCONST const
32# else
33# define EXT __declspec(dllimport)
34# define dEXT
35# define EXTCONST __declspec(dllimport) const
36# define dEXTCONST const
37# endif
38# else
39# define EXT extern
40# define dEXT
41# define EXTCONST extern const
42# define dEXTCONST const
43# endif
4633a7c4 44#endif
8d063cd8
LW
45
46#undef INIT
47#define INIT(x)
48
49#undef DOINIT