aboutsummaryrefslogtreecommitdiffstats
path: root/utils/getopt.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2017-08-20 04:30:53 -0700
committerChris Robinson <[email protected]>2017-08-20 04:30:53 -0700
commit55643d6370430a73bbf0c4ce8d7a2e689b9891d9 (patch)
tree86de62cabeab690c13bb2d5cffa9b3152f6b95bf /utils/getopt.h
parent051828344ecaeff0140034693e3f63355f490e9b (diff)
Use getopt to handle options in makehrtf
Diffstat (limited to 'utils/getopt.h')
-rw-r--r--utils/getopt.h26
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 */
+