This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Make gets() declaration extern "C"
authorSteve Hay <steve.m.hay@googlemail.com>
Mon, 23 Apr 2018 12:53:55 +0000 (13:53 +0100)
committerSteve Hay <steve.m.hay@googlemail.com>
Mon, 23 Apr 2018 12:53:55 +0000 (13:53 +0100)
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.

win32/win32.h

index d514c36..26c3ac2 100644 (file)
@@ -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