From 21cf8ca93f141647ff8ac74b5c33ac0e7b609255 Mon Sep 17 00:00:00 2001 From: theadib Date: Fri, 28 Mar 2008 00:25:32 +0000 Subject: [PATCH] fix broken link to _wspawn prototype --- src/io/sys.cpp | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/io/sys.cpp b/src/io/sys.cpp index 8811b084b..029ff88fd 100644 --- a/src/io/sys.cpp +++ b/src/io/sys.cpp @@ -28,12 +28,26 @@ #ifdef WIN32 -//#define BYPASS_GLIB_SPAWN 1 +#define BYPASS_GLIB_SPAWN 1 #ifdef BYPASS_GLIB_SPAWN #include // declares spawn functions #include // 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 #include #include -- 2.30.2