From 55643d6370430a73bbf0c4ce8d7a2e689b9891d9 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 20 Aug 2017 04:30:53 -0700 Subject: Use getopt to handle options in makehrtf --- utils/getopt.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 utils/getopt.h (limited to 'utils/getopt.h') 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 + +#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 */ + -- cgit v1.2.3