This repository was archived by the owner on Jan 23, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed
corefx/System.Globalization.Native Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -7,9 +7,14 @@ add_definitions(-DBIT64)
7
7
8
8
set (ICU_HOMEBREW_INC_PATH "/usr/local/opt/icu4c/include" )
9
9
10
- find_path (UTYPES_H "unicode/utypes.h" PATHS ${ICU_HOMEBREW_INC_PATH} )
11
- if (UTYPES_H STREQUAL UTYPES_H-NOTFOUND )
12
- message (FATAL_ERROR "Cannot find utypes.h, try installing libicu-dev (or the appropriate package for your platform)" )
10
+ if (CLR_CMAKE_PLATFORM_DARWIN)
11
+ execute_process (COMMAND brew --prefix OUTPUT_VARIABLE brew_prefix OUTPUT_STRIP_TRAILING_WHITESPACE)
12
+ set (ICU_HOMEBREW_INC_PATH "${brew_prefix} /opt/icu4c/include" )
13
+ endif ()
14
+
15
+ find_path (UCURR_H "unicode/ucurr.h" PATHS ${ICU_HOMEBREW_INC_PATH} )
16
+ if (UCURR_H STREQUAL UCURR_H-NOTFOUND )
17
+ message (FATAL_ERROR "Cannot find ucurr.h, try installing libicu-dev (or the appropriate package for your platform)" )
13
18
return ()
14
19
endif ()
15
20
@@ -44,7 +49,7 @@ set(NATIVEGLOBALIZATION_SOURCES
44
49
pal_icushim.c
45
50
)
46
51
47
- include_directories (${UTYPES_H } )
52
+ include_directories (${UCURR_H } )
48
53
49
54
_add_library(System .Globalization.Native
50
55
SHARED
Original file line number Diff line number Diff line change @@ -206,6 +206,7 @@ function_name() to call the system's implementation
206
206
#define srand DUMMY_srand
207
207
#define atoi DUMMY_atoi
208
208
#define atof DUMMY_atof
209
+ #define atoll DUMMY_atoll
209
210
#define tm PAL_tm
210
211
#define size_t DUMMY_size_t
211
212
#define time_t PAL_time_t
@@ -413,6 +414,7 @@ function_name() to call the system's implementation
413
414
#undef wint_t
414
415
#undef atoi
415
416
#undef atol
417
+ #undef atoll
416
418
#undef atof
417
419
#undef malloc
418
420
#undef realloc
You can’t perform that action at this time.
0 commit comments