MinGW provides getopt(), don't build our own

This commit is contained in:
Andrew Johnson
2012-07-24 11:05:35 -05:00
parent 14ca2a8582
commit 2462ff7eb1
2 changed files with 12 additions and 0 deletions

View File

@@ -1,3 +1,5 @@
#ifndef _MINGW
/*
* Copyright (c) 1987, 1993, 1994
* The Regents of the University of California. All rights reserved.
@@ -121,3 +123,5 @@ int getopt(nargc, nargv, ostr)
}
return (optopt); /* dump back option letter */
}
#endif /* !_MINGW */

View File

@@ -12,6 +12,12 @@
#ifndef _EPICS_GETOPT_H
#define _EPICS_GETOPT_H
#ifdef _MINGW
#include <unistd.h>
#else /* _MINGW */
#include "shareLib.h"
#ifdef __cplusplus
@@ -28,4 +34,6 @@ epicsShareExtern int optind, opterr, optopt;
}
#endif
#endif /* _MINGW */
#endif /* _EPICS_GETOPT_H */