msvc: Fix compilation error due to missing mktemp() declaration
PATCH v2 1/1 msvc: Fix compilation error due to missing mktemp() declaration
Commit d1b6e6e (win32: use our own dirent.h, 2010-11-23) removed the compat/vcbuild/include/dirent.h compatibility header file. This file, among other things, included the <io.h> system header file which provides the declaration of the mktemp() function.
In order to fix the compilation error, we add an include directive for <io.h> to the compat/mingw.h header.
---
Change from v1:
- add #include to compat/mingw.h rather than compat/vcbuild/include/unistd.h
ATB,
Ramsay Jones
compat/mingw.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
compat/mingw.h +1 -0
@@ -1,5 +1,6 @@#include <winsock2.h> #include <ws2tcpip.h> +#include <io.h> /* * things that are not available in header files
Signature · 1 line
1.7.3
Quoted 25 lines · Ramsay Jones
Commit d1b6e6e (win32: use our own
dirent.h, 2010-11-23) removed thecompat/vcbuild/include/dirent.hcompatibility header file. This file, among other things, included the <io.h> system header file which provides the declaration of themktemp()function.In order to fix the compilation error, we add an include directive for <
io.h> to thecompat/mingw.hheader.Signed-off-by Ramsay Jones <[email protected]>---
Change from v1:
- add #include tocompat/mingw.hrather thancompat/vcbuild/include/unistd.hATB,
Ramsay Jonescompat/mingw.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)compat/mingw.h +0
-0
compat/mingw.h line 6
Quoted 6 lines
compat/mingw.h +1
-0@@ -1,5 +1,6 @@#include <winsock2.h> #include <ws2tcpip.h> +#include <io.h> /* * things that are not available in header files
ping... Are there any remaining concerns regarding this patch? Just let me know.
ATB,
Ramsay Jones
Quoted 1 line · Ramsay Jones
ping... Are there any remaining concerns regarding this patch?
I dunno. Is everybody on the Windows side happy with it?