preliminary Win32 support added
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Fri, 16 Nov 2007 23:25:29 +0000 (23:25 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Fri, 16 Nov 2007 23:25:29 +0000 (23:25 +0000)
[r18432]

main.c

diff --git a/main.c b/main.c
index 7beaea6..d0cfcf9 100644 (file)
--- a/main.c
+++ b/main.c
 #define PREPROCESSOR "cpp"
 #define LINKER       "gcc"
 
+#ifdef _WIN32
+/* remap some names */
+#define popen(cmd, mode)  _popen(cmd, mode)
+#define pclose(file)      _pclose(file)
+#endif /* _WIN32 */
+
 static int verbose;
 
 static const ir_settings_if_conv_t *if_conv_info = NULL;