summaryrefslogtreecommitdiff
path: root/midicsv-1.1/getopt.h
diff options
context:
space:
mode:
authorpepper <peppersclothescult@gmail.com>2015-01-19 00:02:46 -0800
committerpepper <peppersclothescult@gmail.com>2015-01-19 00:02:46 -0800
commit760d4d5a0fc89e5b14681879577a80e79795e4a3 (patch)
tree3698995f434a00a904f9fdff64a739eb21f53fdb /midicsv-1.1/getopt.h
Diffstat (limited to 'midicsv-1.1/getopt.h')
-rw-r--r--midicsv-1.1/getopt.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/midicsv-1.1/getopt.h b/midicsv-1.1/getopt.h
new file mode 100644
index 0000000..50927bd
--- /dev/null
+++ b/midicsv-1.1/getopt.h
@@ -0,0 +1,10 @@
+
+extern int optind, optopt;
+extern char *optarg;
+
+/* We do the following naming side-step to permit testing
+ our local getopt() on systems which include getopt()
+ and declare it incompatibly in stdio.h or stdlib.h. */
+
+extern int Getopt(int nargc, char *nargv[], char *ostr);
+#define getopt(a, b, c) Getopt(a, b, c)