summaryrefslogtreecommitdiff
path: root/ext/POSIX
diff options
context:
space:
mode:
authorCraig A. Berry <craigberry@mac.com>2012-06-03 18:38:30 -0500
committerCraig A. Berry <craigberry@mac.com>2012-06-03 18:38:30 -0500
commita2e65780dd8343d36e832b250013a219b40e0fc5 (patch)
treec8b770cd23e2140d951da9952c31d8a64cd51cf9 /ext/POSIX
parent938f40b7bc0ceab111fbb5619a242158aa040f06 (diff)
downloadperl-a2e65780dd8343d36e832b250013a219b40e0fc5.tar.gz
extern "C" for POSIX.xs.
We are repeating standard prototypes but we haven't been making them compatible with the standard versions when compiling under C++. Now we do.
Diffstat (limited to 'ext/POSIX')
-rw-r--r--ext/POSIX/POSIX.xs2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/POSIX/POSIX.xs b/ext/POSIX/POSIX.xs
index 681532c8e7..6d08800264 100644
--- a/ext/POSIX/POSIX.xs
+++ b/ext/POSIX/POSIX.xs
@@ -373,9 +373,11 @@ typedef struct termios* POSIX__Termios;
/* Possibly needed prototypes */
#ifndef WIN32
+START_EXTERN_C
double strtod (const char *, char **);
long strtol (const char *, char **, int);
unsigned long strtoul (const char *, char **, int);
+END_EXTERN_C
#endif
#ifndef HAS_DIFFTIME