aboutsummaryrefslogtreecommitdiff
path: root/system/include/libcxx/support/win32/support.h
diff options
context:
space:
mode:
Diffstat (limited to 'system/include/libcxx/support/win32/support.h')
-rw-r--r--system/include/libcxx/support/win32/support.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/system/include/libcxx/support/win32/support.h b/system/include/libcxx/support/win32/support.h
index 17abb915..b953ab77 100644
--- a/system/include/libcxx/support/win32/support.h
+++ b/system/include/libcxx/support/win32/support.h
@@ -15,11 +15,16 @@
Functions and constants used in libc++ that are missing from the Windows C library.
*/
-#include <cwchar> // mbstate_t
+#include <wchar.h> // mbstate_t
#include <cstdarg> // va_ macros
#define swprintf _snwprintf
#define vswprintf _vsnwprintf
+#ifndef NOMINMAX
+#define NOMINMAX
+#endif
+#include <Windows.h>
+
extern "C" {
int vasprintf( char **sptr, const char *__restrict fmt, va_list ap );