mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
ICU-7060 Include platform.h when building on Cygwin/MSVC.
X-SVN-Rev: 26484
This commit is contained in:
parent
7f169416ee
commit
d7d2dfe48d
3 changed files with 11 additions and 3 deletions
|
@ -29,6 +29,11 @@
|
|||
#define @platform@
|
||||
#endif
|
||||
|
||||
/* 1 or 0 to enable or disable threads. If undefined, default is: enable threads. */
|
||||
#define ICU_USE_THREADS @ICU_USE_THREADS@
|
||||
|
||||
/* Need platform.h when using CYGWINMSVC to get definition above. Ignore everything else. */
|
||||
#ifndef CYGWINMSVC
|
||||
/**
|
||||
* \def U_HAVE_DIRENT_H
|
||||
* Define whether dirent.h is available */
|
||||
|
@ -192,9 +197,6 @@ typedef unsigned int uint32_t;
|
|||
#define U_IS_BIG_ENDIAN @U_IS_BIG_ENDIAN@
|
||||
#endif
|
||||
|
||||
/* 1 or 0 to enable or disable threads. If undefined, default is: enable threads. */
|
||||
#define ICU_USE_THREADS @ICU_USE_THREADS@
|
||||
|
||||
/* On strong memory model CPUs (e.g. x86 CPUs), we use a safe & quick double check lock. */
|
||||
#if defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__))
|
||||
#define UMTX_STRONG_MEMORY_MODEL 1
|
||||
|
@ -381,5 +383,6 @@ typedef unsigned int uint32_t;
|
|||
#endif
|
||||
|
||||
/** @} */
|
||||
#endif /* CYGWINMSVC */
|
||||
|
||||
#endif
|
||||
|
|
|
@ -181,7 +181,9 @@ typedef unsigned int uint32_t;
|
|||
#define U_IS_BIG_ENDIAN 0
|
||||
|
||||
/** 1 or 0 to enable or disable threads. If undefined, default is: enable threads. */
|
||||
#ifndef ICU_USE_THREADS
|
||||
#define ICU_USE_THREADS 1
|
||||
#endif
|
||||
|
||||
/* On strong memory model CPUs (e.g. x86 CPUs), we use a safe & quick double check mutex lock. */
|
||||
/**
|
||||
|
|
|
@ -44,6 +44,9 @@
|
|||
#if defined(U_PALMOS)
|
||||
# include "unicode/ppalmos.h"
|
||||
#elif defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
|
||||
#ifdef CYGWINMSVC
|
||||
# include "unicode/platform.h"
|
||||
#endif
|
||||
# include "unicode/pwin32.h"
|
||||
#else
|
||||
# include "unicode/platform.h"
|
||||
|
|
Loading…
Add table
Reference in a new issue