ICU-7060 Include platform.h when building on Cygwin/MSVC.

X-SVN-Rev: 26484
This commit is contained in:
Michael Ow 2009-08-12 18:57:25 +00:00
parent 7f169416ee
commit d7d2dfe48d
3 changed files with 11 additions and 3 deletions

View file

@ -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

View file

@ -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. */
/**

View file

@ -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"