@@ -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>
#ifdef GPR_WIN32_STRING