diff options
Diffstat (limited to 'EXTERN.h')
-rw-r--r-- | EXTERN.h | 15 |
1 files changed, 11 insertions, 4 deletions
@@ -30,10 +30,17 @@ # define EXTCONST __declspec(dllexport) const # define dEXTCONST const # else -# define EXT __declspec(dllimport) -# define dEXT -# define EXTCONST __declspec(dllimport) const -# define dEXTCONST const +# if defined(__cplusplus) +# define EXT extern __declspec(dllimport) +# define dEXT +# define EXTCONST extern __declspec(dllimport) const +# define dEXTCONST const +# else +# define EXT __declspec(dllimport) +# define dEXT +# define EXTCONST __declspec(dllimport) const +# define dEXTCONST const +# endif # endif # else # define EXT extern |