summaryrefslogtreecommitdiffstats
path: root/host/commands/emugen/getopt.h
diff options
context:
space:
mode:
Diffstat (limited to 'host/commands/emugen/getopt.h')
-rw-r--r--host/commands/emugen/getopt.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/host/commands/emugen/getopt.h b/host/commands/emugen/getopt.h
new file mode 100644
index 000000000..cc04850a2
--- /dev/null
+++ b/host/commands/emugen/getopt.h
@@ -0,0 +1,18 @@
+#ifndef GETOPT_H
+#define GETOPT_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+extern int optind;
+extern char* optarg;
+extern int optopt;
+
+int getopt(int argc, char* const argv[], const char* ostr);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // GETOPT_H