Răsfoiți Sursa

Moving headers around.

Nicolas "Pixel" Noble 9 ani în urmă
părinte
comite
95953bfd7f

+ 4 - 1
src/core/lib/support/string_util_win32.c

@@ -37,11 +37,14 @@
 
 #ifdef GPR_WIN32
 
+/* Some platforms (namely msys) need wchar to be included BEFORE
+   anything else, especially strsafe.h. */
+#include <wchar.h>
+
 #include <stdarg.h>
 #include <stdio.h>
 #include <string.h>
 #include <strsafe.h>
-#include <wchar.h>
 
 #include <grpc/support/alloc.h>
 #include <grpc/support/string_util.h>

+ 4 - 1
src/core/lib/support/string_win32.c

@@ -37,11 +37,14 @@
 
 #ifdef GPR_WIN32_STRING
 
+/* Some platforms (namely msys) need wchar to be included BEFORE
+   anything else, especially strsafe.h. */
+#include <wchar.h>
+
 #include <stdarg.h>
 #include <stdio.h>
 #include <string.h>
 #include <strsafe.h>
-#include <wchar.h>
 
 #include <grpc/support/alloc.h>
 #include <grpc/support/string_util.h>