comparison src/build-msvctools/unistd.h @ 3337:8480924d2b85

[MSVC] Use POSIX compliant getopt version from mingw64. * src/build-msvctools/Makefile (getopt.c, getopt.h): Use versions from mingw64, as they're POSIX compliant. (posixcompat.lib): New target library, replaces dirent.lib and getopt.lib. (dirent.lib, getopt.lib): Removed targets. * src/build-msvctools/getopt.diff: Removed obsolete patch. * src/build-msvctools/cc-msvc.cc: Links against posixcompat.lib instead of dirent.lib * src/build-msvctools/unistd.h: Include getopt.h, for POSIX compliance.
author Michael Goffioul <michael.goffioul@gmail.com>
date Fri, 29 Nov 2013 18:46:45 -0500
parents f8299bb6c872
children
comparison
equal deleted inserted replaced
3336:5c651d4db00c 3337:8480924d2b85
4 #define __unistd_h__ 1 4 #define __unistd_h__ 1
5 5
6 #include <direct.h> 6 #include <direct.h>
7 #include <process.h> 7 #include <process.h>
8 #include <io.h> 8 #include <io.h>
9 #include <getopt.h>
9 10
10 #ifndef PATH_MAX 11 #ifndef PATH_MAX
11 # define PATH_MAX 260 12 # define PATH_MAX 260
12 #endif 13 #endif
13 14