summaryrefslogtreecommitdiff
path: root/tools/getopt.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/getopt.h')
-rw-r--r--tools/getopt.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/getopt.h b/tools/getopt.h
new file mode 100644
index 0000000..d52543f
--- /dev/null
+++ b/tools/getopt.h
@@ -0,0 +1,16 @@
+#ifndef __GETOPT_H_
+#define __GETOPT_H_
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+extern int optind ;
+extern char *optarg ;
+extern int getopt (int argc, char **argv, char *optstring) ;
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif