Mercurial > mxe-octave
view 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 |
line wrap: on
line source
/* Emulation of unistd.h for Visual C++. */ #ifndef __unistd_h__ #define __unistd_h__ 1 #include <direct.h> #include <process.h> #include <io.h> #include <getopt.h> #ifndef PATH_MAX # define PATH_MAX 260 #endif #endif