Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Commit

Permalink
Merge in 'release/3.1' changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dotnet-bot committed Nov 19, 2021
2 parents ae9d0cc + fd5f28a commit 28bb6f9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/corefx/System.Globalization.Native/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,14 @@ add_definitions(-DBIT64)

set(ICU_HOMEBREW_INC_PATH "/usr/local/opt/icu4c/include")

find_path(UTYPES_H "unicode/utypes.h" PATHS ${ICU_HOMEBREW_INC_PATH})
if(UTYPES_H STREQUAL UTYPES_H-NOTFOUND)
message(FATAL_ERROR "Cannot find utypes.h, try installing libicu-dev (or the appropriate package for your platform)")
if (CLR_CMAKE_PLATFORM_DARWIN)
execute_process(COMMAND brew --prefix OUTPUT_VARIABLE brew_prefix OUTPUT_STRIP_TRAILING_WHITESPACE)
set(ICU_HOMEBREW_INC_PATH "${brew_prefix}/opt/icu4c/include")
endif()

find_path(UCURR_H "unicode/ucurr.h" PATHS ${ICU_HOMEBREW_INC_PATH})
if(UCURR_H STREQUAL UCURR_H-NOTFOUND)
message(FATAL_ERROR "Cannot find ucurr.h, try installing libicu-dev (or the appropriate package for your platform)")
return()
endif()

Expand Down Expand Up @@ -44,7 +49,7 @@ set(NATIVEGLOBALIZATION_SOURCES
pal_icushim.c
)

include_directories(${UTYPES_H})
include_directories(${UCURR_H})

_add_library(System.Globalization.Native
SHARED
Expand Down
2 changes: 2 additions & 0 deletions src/pal/src/include/pal/palinternal.h
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ function_name() to call the system's implementation
#define srand DUMMY_srand
#define atoi DUMMY_atoi
#define atof DUMMY_atof
#define atoll DUMMY_atoll
#define tm PAL_tm
#define size_t DUMMY_size_t
#define time_t PAL_time_t
Expand Down Expand Up @@ -413,6 +414,7 @@ function_name() to call the system's implementation
#undef wint_t
#undef atoi
#undef atol
#undef atoll
#undef atof
#undef malloc
#undef realloc
Expand Down

0 comments on commit 28bb6f9

Please sign in to comment.