Change 31350 by [EMAIL PROTECTED] on 2007/06/07 13:49:04

        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.

Affected files ...

... //depot/perl/x2p/a2p.c#21 edit

Differences ...

==== //depot/perl/x2p/a2p.c#21 (text) ====
Index: perl/x2p/a2p.c
--- perl/x2p/a2p.c#20~28934~    2006-10-04 11:45:37.000000000 -0700
+++ perl/x2p/a2p.c      2007-06-07 06:49:04.000000000 -0700
@@ -2181,7 +2181,11 @@
 #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
End of Patch.

Reply via email to