(getopt) [_WIN32]: In order to prevent namespace conflict between MSC and

MinGW created an extern getopt() in unistd.h.  MinGW has getopt() in the library.
MSC does not have getopt() function.
This commit is contained in:
Ron Koenderink 2007-08-19 01:37:25 +00:00
parent c47f59e189
commit 71669b1858

View file

@ -38,9 +38,15 @@
#include <stdio.h> #include <stdio.h>
#undef fileno #undef fileno
#include "sys/socket.h" #include "sys/socket.h"
#include "getopt.h"
#include <sys/stat.h> #include <sys/stat.h>
/*
* getopt.c
*/
extern int getopt(int, char * const[], const char *);
extern char *optarg;
extern int optind, opterr, optopt;
/* /*
* posixfile.c * posixfile.c
*/ */