Signed-off-by: Jacek Caban <ja...@codeweavers.com>
---
 mingw-w64-headers/crt/corecrt_startup.h | 23 +++++++++++++++++++++++
 mingw-w64-headers/crt/process.h         |  1 +
 2 files changed, 24 insertions(+)
 create mode 100644 mingw-w64-headers/crt/corecrt_startup.h


diff --git a/mingw-w64-headers/crt/corecrt_startup.h b/mingw-w64-headers/crt/corecrt_startup.h
new file mode 100644
index 00000000..9afdafcc
--- /dev/null
+++ b/mingw-w64-headers/crt/corecrt_startup.h
@@ -0,0 +1,23 @@
+/**
+ * This file has no copyright assigned and is placed in the Public Domain.
+ * This file is part of the mingw-w64 runtime package.
+ * No warranty is given; refer to the file DISCLAIMER.PD within this package.
+ */
+
+#ifndef _INC_CORECRT_STARTUP
+#define _INC_CORECRT_STARTUP
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+_CRTIMP char **__cdecl __p__acmdln(void);
+#define _acmdln (*__p__acmdln())
+
+_CRTIMP wchar_t **__cdecl __p__wcmdln(void);
+#define _wcmdln (*__p__wcmdln())
+
+#ifdef __cplusplus
+}
+#endif
+#endif
diff --git a/mingw-w64-headers/crt/process.h b/mingw-w64-headers/crt/process.h
index 60a5233c..b6986852 100644
--- a/mingw-w64-headers/crt/process.h
+++ b/mingw-w64-headers/crt/process.h
@@ -7,6 +7,7 @@
 #define _INC_PROCESS
 
 #include <crtdefs.h>
+#include <corecrt_startup.h>
 
 /* Includes a definition of _pid_t and pid_t */
 #include <sys/types.h>

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to