summaryrefslogtreecommitdiff
path: root/compat.h
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2008-12-06 00:22:35 +0000
committerStef Walter <stef@memberwebs.com>2008-12-06 00:22:35 +0000
commitd3fa2085bf9169eab3430ff903f75b7487c7ee82 (patch)
treecf0f05047b689dc5e48a2dcec955c268b95eaee8 /compat.h
parent746579baf9176eb13dc19e98627e27e900c9859d (diff)
Build on Win32 and create VCE project.
Diffstat (limited to 'compat.h')
-rw-r--r--compat.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/compat.h b/compat.h
new file mode 100644
index 0000000..02ad831
--- /dev/null
+++ b/compat.h
@@ -0,0 +1,19 @@
+
+#ifndef _COMPAT_H_
+#define _COMPAT_H_
+
+#ifdef _WIN32
+
+int getopt(int argc, char* const *argv, const char *optstr);
+extern char *optarg;
+extern int optreset;
+extern int optind;
+extern int opterr;
+
+#else
+
+#include <unistd.h>
+
+#endif
+
+#endif /* _COMPAT_H_ */