aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/support
diff options
context:
space:
mode:
authorGravatar Nicolas "Pixel" Noble <pixel@nobis-crew.org>2016-04-15 07:58:22 +0200
committerGravatar Nicolas "Pixel" Noble <pixel@nobis-crew.org>2016-04-15 07:58:22 +0200
commit95953bfd7f71c1555aaf7d9a158295c4720fa9da (patch)
tree5d2d62978b43e02c8bd1aa8099398e2df10be127 /src/core/lib/support
parent344f55b7baad4fce6be0d5c7007b43f5f270e359 (diff)
Moving headers around.
Diffstat (limited to 'src/core/lib/support')
-rw-r--r--src/core/lib/support/string_util_win32.c5
-rw-r--r--src/core/lib/support/string_win32.c5
2 files changed, 8 insertions, 2 deletions
diff --git a/src/core/lib/support/string_util_win32.c b/src/core/lib/support/string_util_win32.c
index c0586a3fbb..f3cb0c050f 100644
--- a/src/core/lib/support/string_util_win32.c
+++ b/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>
diff --git a/src/core/lib/support/string_win32.c b/src/core/lib/support/string_win32.c
index eabd9c6883..9b398b89c5 100644
--- a/src/core/lib/support/string_win32.c
+++ b/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>