summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorCraig A. Berry <craigberry@mac.com>2012-05-24 17:47:39 -0500
committerCraig A. Berry <craigberry@mac.com>2012-05-24 17:47:39 -0500
commit2242159b1c96bb6b44fa49ed1fe33b2d81f3df78 (patch)
treea5212be37c7f5ff865de236fe39a4b0a8a61c486 /perl.h
parent25bbd8263003a49c3f7afdc1cd082f6f66e76ce4 (diff)
downloadperl-2242159b1c96bb6b44fa49ed1fe33b2d81f3df78.tar.gz
VMS C++ strerror prototype differences in perl.h.
The funny extra arguments to strerror are only there on VMS when compiling with C, not C++. On VMS, DONT_DECLARE_STD is synonymous with defined(__cplusplus).
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl.h b/perl.h
index 29d4fa1363..548f471f64 100644
--- a/perl.h
+++ b/perl.h
@@ -1381,13 +1381,13 @@ EXTERN_C char *crypt(const char *, const char *);
#endif
#ifdef HAS_STRERROR
+#ifndef DONT_DECLARE_STD
# ifdef VMS
char *strerror (int,...);
# else
-#ifndef DONT_DECLARE_STD
char *strerror (int);
-#endif
# endif
+#endif
# ifndef Strerror
# define Strerror strerror
# endif