summaryrefslogtreecommitdiff
path: root/win32/win32.h
diff options
context:
space:
mode:
authorSteve Hay <steve.m.hay@googlemail.com>2018-04-23 13:53:55 +0100
committerSteve Hay <steve.m.hay@googlemail.com>2018-04-23 13:53:55 +0100
commite7a4ac29db6bdae9bd692f8f1f2471eee03bbb66 (patch)
tree5418a97782c91100aeb1edf7b7598b34aa0df761 /win32/win32.h
parent002a84150d55738667ea8a7243b124db949436ca (diff)
downloadperl-e7a4ac29db6bdae9bd692f8f1f2471eee03bbb66.tar.gz
Make gets() declaration extern "C"
This, together with the previous commit, fixes the C++-mode build on Windows using VS2017 except for the remaining problem with PL_nan when linking POSIX - see RT#132955.
Diffstat (limited to 'win32/win32.h')
-rw-r--r--win32/win32.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/win32.h b/win32/win32.h
index d514c3653d..26c3ac254f 100644
--- a/win32/win32.h
+++ b/win32/win32.h
@@ -314,7 +314,7 @@ __PL_nan_u = { 0x7FF8000000000000UI64 };
#if _MSC_VER >= 1900
/* No longer declared in stdio.h */
-char *gets(char* buffer);
+EXTERN_C char *gets(char* buffer);
#define tzname _tzname