diff options
Diffstat (limited to 'utils/getopt.h')
-rw-r--r-- | utils/getopt.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/utils/getopt.h b/utils/getopt.h new file mode 100644 index 00000000..f894d9d9 --- /dev/null +++ b/utils/getopt.h @@ -0,0 +1,26 @@ +#ifndef GETOPT_H
+#define GETOPT_H
+
+#ifndef _WIN32
+
+#include <unistd.h>
+
+#else /* _WIN32 */
+
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
+extern char *optarg;
+extern int optind, opterr, optopt, optreset;
+
+int getopt(int nargc, char * const nargv[], const char *ostr);
+
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
+#endif /* !_WIN32 */
+
+#endif /* !GETOPT_H */
+
|