diff options
author | Steve Hay <SteveHay@planit.com> | 2007-06-07 13:49:04 +0000 |
---|---|---|
committer | Steve Hay <SteveHay@planit.com> | 2007-06-07 13:49:04 +0000 |
commit | 4ee50d44aab4daa2990af918a17df7200b6e468c (patch) | |
tree | 930e30bec8122b52942484664ec81a9f34f64ef3 /x2p | |
parent | b92ffa59657e7ca52a768410e906a43ca1ce814e (diff) | |
download | perl-4ee50d44aab4daa2990af918a17df7200b6e468c.tar.gz |
Stop VC++ from warning "'getenv' : inconsistent dll linkage.
dllexport assumed." when building with -DDEBUGGING by declaring
getenv() with the same __declspec as in Microsoft's <stdlib.h>.
MinGW/GCC is happy with that too, but Borland doesn't understand
_CRTIMP so don't bother for Borland since it doesn't warn anyway.
p4raw-id: //depot/perl@31350
Diffstat (limited to 'x2p')
-rw-r--r-- | x2p/a2p.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -2181,7 +2181,11 @@ int yyparse (void); #define YYERROR goto yyerrlab #if YYDEBUG +# if defined(WIN32) && !defined(__BORLANDC__) +EXTERN_C _CRTIMP char *getenv(const char *); +# else EXTERN_C char *getenv(const char *); +# endif #endif int |