summaryrefslogtreecommitdiff
path: root/Build/source/libs/icu/icu-49.1-PATCHES/patch-01-Cygwin
blob: d7c27e905f7a035743803520ae4d057158fe9016 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
	Build fix for Cygwin.

	Since <windows.h> is not included for Cygwin, we
	can't use the WIN32 API.

	With U_ENABLE_DYLOAD=1: enable plugins for Cygwin.

	With U_ENABLE_DYLOAD=0: can't use WIN32 API (HMODULE undeclared).

diff -ur icu-49.1.orig/source/common/putil.cpp icu-49.1/source/common/putil.cpp
--- icu-49.1.orig/source/common/putil.cpp	2012-03-21 18:35:10.000000000 +0100
+++ icu-49.1/source/common/putil.cpp	2012-03-23 18:37:30.000000000 +0100
@@ -2100,7 +2100,7 @@
 
 #if U_ENABLE_DYLOAD
  
-#if HAVE_DLOPEN && !U_PLATFORM_HAS_WIN32_API
+#if HAVE_DLOPEN && !U_PLATFORM_USES_ONLY_WIN32_API
 
 #if HAVE_DLFCN_H
 
@@ -2181,7 +2181,7 @@
 
 #endif
 
-#elif U_PLATFORM_HAS_WIN32_API
+#elif U_PLATFORM_USES_ONLY_WIN32_API
 
 U_INTERNAL void * U_EXPORT2
 uprv_dl_open(const char *libName, UErrorCode *status) {