summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: aa5687d)
raw | patch | inline | side by side (parent: aa5687d)
author | theadib <theadib@users.sourceforge.net> | |
Fri, 28 Mar 2008 00:25:32 +0000 (00:25 +0000) | ||
committer | theadib <theadib@users.sourceforge.net> | |
Fri, 28 Mar 2008 00:25:32 +0000 (00:25 +0000) |
src/io/sys.cpp | patch | blob | history |
diff --git a/src/io/sys.cpp b/src/io/sys.cpp
index 8811b084b592f0d56f780e06f0fdc931ef8d3e0c..029ff88fdba31943c02040c927f49e66d62dd305 100644 (file)
--- a/src/io/sys.cpp
+++ b/src/io/sys.cpp
#ifdef WIN32
-//#define BYPASS_GLIB_SPAWN 1
+#define BYPASS_GLIB_SPAWN 1
#ifdef BYPASS_GLIB_SPAWN
#include <process.h> // declares spawn functions
#include <wchar.h> // declares _wspawn functions
+#ifdef __cplusplus
+extern "C" {
+#endif
+_CRTIMP int __cdecl __MINGW_NOTHROW _wspawnl (int, const wchar_t*, const wchar_t*, ...);
+_CRTIMP int __cdecl __MINGW_NOTHROW _wspawnle (int, const wchar_t*, const wchar_t*, ...);
+_CRTIMP int __cdecl __MINGW_NOTHROW _wspawnlp (int, const wchar_t*, const wchar_t*, ...);
+_CRTIMP int __cdecl __MINGW_NOTHROW _wspawnlpe (int, const wchar_t*, const wchar_t*, ...);
+_CRTIMP int __cdecl __MINGW_NOTHROW _wspawnv (int, const wchar_t*, const wchar_t* const*);
+_CRTIMP int __cdecl __MINGW_NOTHROW _wspawnve (int, const wchar_t*, const wchar_t* const*, const wchar_t* const*);
+_CRTIMP int __cdecl __MINGW_NOTHROW _wspawnvp (int, const wchar_t*, const wchar_t* const*);
+_CRTIMP int __cdecl __MINGW_NOTHROW _wspawnvpe (int, const wchar_t*, const wchar_t* const*, const wchar_t* const*);
+#ifdef __cplusplus
+}
+#endif
#include <unistd.h>
#include <glibmm/i18n.h>
#include <fcntl.h>