summaryrefslogtreecommitdiff
path: root/src/pl
diff options
context:
space:
mode:
authorTom Lane2002-10-18 20:33:57 +0000
committerTom Lane2002-10-18 20:33:57 +0000
commit6c06bc2644a7684edd062f46c8a1bb7c610a9359 (patch)
treed7edbb343521da38fd29dfa62457993f427b8c84 /src/pl
parentdad34ba5679d7a141e0d7a6802394330a572652e (diff)
Make 'dummy' declarations in header files be 'extern int no_such_variable'
instead of 'extern int errno'; the latter is unsafe according to the ANSI C standard, as well as in practice on some platforms.
Diffstat (limited to 'src/pl')
-rw-r--r--src/pl/plperl/ppport.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/pl/plperl/ppport.h b/src/pl/plperl/ppport.h
index 8a788ad5a6f..15b259eabfb 100644
--- a/src/pl/plperl/ppport.h
+++ b/src/pl/plperl/ppport.h
@@ -177,11 +177,7 @@ __DATA__
#endif
#ifndef dTHR
-#ifdef WIN32
-#define dTHR extern int Perl___notused
-#else
-#define dTHR extern int errno
-#endif
+#define dTHR extern int no_such_variable
#endif
#ifndef boolSV