summaryrefslogtreecommitdiff
path: root/midicsv-1.1/getopt.h
diff options
context:
space:
mode:
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)