summaryrefslogtreecommitdiff
path: root/x2p
diff options
context:
space:
mode:
authorSteve Hay <SteveHay@planit.com>2007-06-07 13:49:04 +0000
committerSteve Hay <SteveHay@planit.com>2007-06-07 13:49:04 +0000
commit4ee50d44aab4daa2990af918a17df7200b6e468c (patch)
tree930e30bec8122b52942484664ec81a9f34f64ef3 /x2p
parentb92ffa59657e7ca52a768410e906a43ca1ce814e (diff)
downloadperl-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.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/x2p/a2p.c b/x2p/a2p.c
index 9d1d1725cb..20e322765d 100644
--- a/x2p/a2p.c
+++ b/x2p/a2p.c
@@ -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