From: 宋冬生 <songdongsh...@live.cn>

See http://msdn.microsoft.com/en-us/library/20y988d2.aspx
for more details.
---
 mingw-w64-headers/crt/process.h |  6 ++++++
 mingw-w64-headers/crt/stdio.h   | 20 ++++++++++++++++++++
 2 files changed, 26 insertions(+)

diff --git a/mingw-w64-headers/crt/process.h b/mingw-w64-headers/crt/process.h
index 9b36daa..8034d41 100644
--- a/mingw-w64-headers/crt/process.h
+++ b/mingw-w64-headers/crt/process.h
@@ -16,6 +16,7 @@
 extern "C" {
 #endif
 
+#ifndef _P_WAIT
 #define _P_WAIT 0
 #define _P_NOWAIT 1
 #define _OLD_P_OVERLAY 2
@@ -25,6 +26,7 @@ extern "C" {
 
 #define _WAIT_CHILD 0
 #define _WAIT_GRANDCHILD 1
+#endif
 
   _CRTIMP uintptr_t __cdecl _beginthread(void (__cdecl *_StartAddress) (void 
*),unsigned _StackSize,void *_ArgList);
   _CRTIMP void __cdecl _endthread(void) __MINGW_ATTRIB_NORETURN;
@@ -68,10 +70,14 @@ extern "C" {
   _CRTIMP intptr_t __cdecl _spawnle(int _Mode,const char *_Filename,const char 
*_ArgList,...);
   _CRTIMP intptr_t __cdecl _spawnlp(int _Mode,const char *_Filename,const char 
*_ArgList,...);
   _CRTIMP intptr_t __cdecl _spawnlpe(int _Mode,const char *_Filename,const 
char *_ArgList,...);
+
+#ifndef _SPAWNV_DEFINED
+#define _SPAWNV_DEFINED
   _CRTIMP intptr_t __cdecl _spawnv(int _Mode,const char *_Filename,const char 
*const *_ArgList);
   _CRTIMP intptr_t __cdecl _spawnve(int _Mode,const char *_Filename,const char 
*const *_ArgList,const char *const *_Env);
   _CRTIMP intptr_t __cdecl _spawnvp(int _Mode,const char *_Filename,const char 
*const *_ArgList);
   _CRTIMP intptr_t __cdecl _spawnvpe(int _Mode,const char *_Filename,const 
char *const *_ArgList,const char *const *_Env);
+#endif
 
 #ifndef _CRT_SYSTEM_DEFINED
 #define _CRT_SYSTEM_DEFINED
diff --git a/mingw-w64-headers/crt/stdio.h b/mingw-w64-headers/crt/stdio.h
index 825281f..3b49ddd 100644
--- a/mingw-w64-headers/crt/stdio.h
+++ b/mingw-w64-headers/crt/stdio.h
@@ -962,6 +962,26 @@ void __cdecl __mingw_str_free(void *ptr);
   _CRTIMP intptr_t __cdecl _wspawnvpe(int _Mode,const wchar_t *_Filename,const 
wchar_t *const *_ArgList,const wchar_t *const *_Env);
 #endif
 
+#ifndef _P_WAIT
+#define _P_WAIT 0
+#define _P_NOWAIT 1
+#define _OLD_P_OVERLAY 2
+#define _P_NOWAITO 3
+#define _P_DETACH 4
+#define _P_OVERLAY 2
+
+#define _WAIT_CHILD 0
+#define _WAIT_GRANDCHILD 1
+#endif
+
+#ifndef _SPAWNV_DEFINED
+#define _SPAWNV_DEFINED
+  _CRTIMP intptr_t __cdecl _spawnv(int _Mode,const char *_Filename,const char 
*const *_ArgList);
+  _CRTIMP intptr_t __cdecl _spawnve(int _Mode,const char *_Filename,const char 
*const *_ArgList,const char *const *_Env);
+  _CRTIMP intptr_t __cdecl _spawnvp(int _Mode,const char *_Filename,const char 
*const *_ArgList);
+  _CRTIMP intptr_t __cdecl _spawnvpe(int _Mode,const char *_Filename,const 
char *const *_ArgList,const char *const *_Env);
+#endif
+
 #ifdef __cplusplus
 }
 #endif
-- 
2.1.2


------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to