]> granicus.if.org Git - icu/commitdiff
ICU-20240 Fix Windows build failure in japancal.cpp
authorJeff Genovy <29107334+jefgen@users.noreply.github.com>
Fri, 26 Oct 2018 00:13:23 +0000 (17:13 -0700)
committerJeff Genovy <29107334+jefgen@users.noreply.github.com>
Fri, 26 Oct 2018 21:12:24 +0000 (14:12 -0700)
icu4c/source/i18n/japancal.cpp

index 5159be337c2276f84b08cd10dcc3607d0e22408a..e2a14024083ea6e07efb0fc5d4d171ad076a985b 100644 (file)
 #if !UCONFIG_NO_FORMATTING
 #if U_PLATFORM_HAS_WINUWP_API == 0
 #include <stdlib.h> // getenv() is not available in UWP env
+#else
+#ifndef WIN32_LEAN_AND_MEAN
+#   define WIN32_LEAN_AND_MEAN
+#endif
+#   define VC_EXTRALEAN
+#   define NOUSER
+#   define NOSERVICE
+#   define NOIME
+#   define NOMCX
+#include <windows.h>
 #endif
 #include "cmemory.h"
 #include "erarules.h"