#include "unicode/utypes.h"
#include "unicode/putil.h"
+/**
+ * \def U_HAVE_MSVC_2003_OR_EARLIER
+ * Flag for workaround of MSVC 2003 optimization bugs
+ * @internal
+ */
+#if !defined(U_HAVE_MSVC_2003_OR_EARLIER) && defined(_MSC_VER) && (_MSC_VER < 1400)
+#define U_HAVE_MSVC_2003_OR_EARLIER
+#endif
+
+/*===========================================================================*/
+/** @{ Information about POSIX support */
+/*===========================================================================*/
+
+#ifdef U_HAVE_NL_LANGINFO_CODESET
+ /* Use the predefined value. */
+#elif U_PLATFORM_HAS_WIN32_API
+# define U_HAVE_NL_LANGINFO_CODESET 0
+#else
+# define U_HAVE_NL_LANGINFO_CODESET 1
+#endif
+
+#ifdef U_NL_LANGINFO_CODESET
+ /* Use the predefined value. */
+#elif !U_HAVE_NL_LANGINFO_CODESET
+# define U_NL_LANGINFO_CODESET -1
+#else
+# define U_NL_LANGINFO_CODESET CODESET
+#endif
+
+#ifdef U_TZSET
+ /* Use the predefined value. */
+#elif U_PLATFORM_HAS_WIN32_API
+# define U_TZSET _tzset
+#else
+# define U_TZSET tzset
+#endif
+
+#ifdef U_TIMEZONE
+ /* Use the predefined value. */
+#elif U_PLATFORM_IS_LINUX_BASED
+# define U_TIMEZONE __timezone
+#elif U_PLATFORM_HAS_WIN32_API
+# define U_TIMEZONE _timezone
+#else
+# define U_TIMEZONE timezone
+#endif
+
+#ifdef U_TZNAME
+ /* Use the predefined value. */
+#elif U_PLATFORM_HAS_WIN32_API
+# define U_TZNAME _tzname
+#else
+# define U_TZNAME tzname
+#endif
+
+#ifdef U_HAVE_MMAP
+ /* Use the predefined value. */
+#elif U_PLATFORM_HAS_WIN32_API
+# define U_HAVE_MMAP 0
+#else
+# define U_HAVE_MMAP 1
+#endif
+
+#ifdef U_HAVE_POPEN
+ /* Use the predefined value. */
+#elif U_PLATFORM_HAS_WIN32_API
+# define U_HAVE_POPEN 0
+#else
+# define U_HAVE_POPEN 1
+#endif
+
+/**
+ * \def U_HAVE_DIRENT_H
+ * Defines whether dirent.h is available.
+ * @internal
+ */
+#ifdef U_HAVE_DIRENT_H
+ /* Use the predefined value. */
+#elif U_PLATFORM_HAS_WIN32_API
+# define U_HAVE_DIRENT_H 0
+#else
+# define U_HAVE_DIRENT_H 1
+#endif
+
+/** @} */
+
+/*===========================================================================*/
+/** @{ GCC built in functions for atomic memory operations */
+/*===========================================================================*/
+
+/**
+ * \def U_HAVE_GCC_ATOMICS
+ * @internal
+ */
+#ifdef U_HAVE_GCC_ATOMICS
+ /* Use the predefined value. */
+#elif defined(__GNUC__)
+# define U_HAVE_GCC_ATOMICS 1
+#else
+# define U_HAVE_GCC_ATOMICS 0
+#endif
+
+/** @} */
+
+/*===========================================================================*/
+/** @{ Programs used by ICU code */
+/*===========================================================================*/
+
+/**
+ * \def U_MAKE_IS_NMAKE
+ * Defines whether the "make" program is Windows nmake.
+ */
+#ifdef U_MAKE_IS_NMAKE
+ /* Use the predefined value. */
+#elif U_PLATFORM == U_PF_WINDOWS
+# define U_MAKE_IS_NMAKE 1
+#else
+# define U_MAKE_IS_NMAKE 0
+#endif
+
+/** @} */
+
/*==========================================================================*/
/* Platform utilities */
/*==========================================================================*/
#include "unicode/putil.h"
#include "unicode/udata.h"
+#include "putilimp.h"
U_CFUNC UBool uprv_mapFile(UDataMemory *pdm, const char *path);
U_CFUNC void uprv_unmapFile(UDataMemory *pData);
#include "unicode/utypes.h"
#include "unicode/uclean.h"
+#include "putilimp.h"
#if defined(_MSC_VER) && _MSC_VER >= 1500
# include <intrin.h>
# define U_PLATFORM_IS_DARWIN_BASED 0
#endif
-/**
- * \def U_HAVE_DIRENT_H
- * Defines whether dirent.h is available.
- * @internal
- */
-#ifdef U_HAVE_DIRENT_H
- /* Use the predefined value. */
-#elif U_PLATFORM_HAS_WIN32_API
-# define U_HAVE_DIRENT_H 0
-#else
-# define U_HAVE_DIRENT_H 1
-#endif
-
/**
* \def U_HAVE_STDINT_H
* Defines whether stdint.h is available. It is a C99 standard header.
/** @} */
-/*===========================================================================*/
-/** @{ Information about POSIX support */
-/*===========================================================================*/
-
-#ifdef U_HAVE_NL_LANGINFO_CODESET
- /* Use the predefined value. */
-#elif U_PLATFORM_HAS_WIN32_API
-# define U_HAVE_NL_LANGINFO_CODESET 0
-#else
-# define U_HAVE_NL_LANGINFO_CODESET 1
-#endif
-
-#ifdef U_NL_LANGINFO_CODESET
- /* Use the predefined value. */
-#elif !U_HAVE_NL_LANGINFO_CODESET
-# define U_NL_LANGINFO_CODESET -1
-#else
-# define U_NL_LANGINFO_CODESET CODESET
-#endif
-
-#ifdef U_TZSET
- /* Use the predefined value. */
-#elif U_PLATFORM_HAS_WIN32_API
-# define U_TZSET _tzset
-#else
-# define U_TZSET tzset
-#endif
-
-#ifdef U_TIMEZONE
- /* Use the predefined value. */
-#elif U_PLATFORM_IS_LINUX_BASED
-# define U_TIMEZONE __timezone
-#elif U_PLATFORM_HAS_WIN32_API
-# define U_TIMEZONE _timezone
-#else
-# define U_TIMEZONE timezone
-#endif
-
-#ifdef U_TZNAME
- /* Use the predefined value. */
-#elif U_PLATFORM_HAS_WIN32_API
-# define U_TZNAME _tzname
-#else
-# define U_TZNAME tzname
-#endif
-
-#ifdef U_HAVE_MMAP
- /* Use the predefined value. */
-#elif U_PLATFORM_HAS_WIN32_API
-# define U_HAVE_MMAP 0
-#else
-# define U_HAVE_MMAP 1
-#endif
-
-#ifdef U_HAVE_POPEN
- /* Use the predefined value. */
-#elif U_PLATFORM_HAS_WIN32_API
-# define U_HAVE_POPEN 0
-#else
-# define U_HAVE_POPEN 1
-#endif
-
-/** @} */
-
/*===========================================================================*/
/** @{ Symbol import-export control */
/*===========================================================================*/
/** @} */
-/**
- * \def U_HAVE_MSVC_2003_OR_EARLIER
- * Flag for workaround of MSVC 2003 optimization bugs
- * @internal
- */
-#if !defined(U_HAVE_MSVC_2003_OR_EARLIER) && defined(_MSC_VER) && (_MSC_VER < 1400)
-#define U_HAVE_MSVC_2003_OR_EARLIER
-#endif
-
-/*===========================================================================*/
-/** @{ GCC built in functions for atomic memory operations */
-/*===========================================================================*/
-
-/**
- * \def U_HAVE_GCC_ATOMICS
- * @internal
- */
-#ifdef U_HAVE_GCC_ATOMICS
- /* Use the predefined value. */
-#elif defined(__GNUC__)
-# define U_HAVE_GCC_ATOMICS 1
-#else
-# define U_HAVE_GCC_ATOMICS 0
-#endif
-
-/** @} */
-
-/*===========================================================================*/
-/** @{ Programs used by ICU code */
-/*===========================================================================*/
-
-/**
- * \def U_MAKE_IS_NMAKE
- * Defines whether the "make" program is Windows nmake.
- */
-#ifdef U_MAKE_IS_NMAKE
- /* Use the predefined value. */
-#elif U_PLATFORM == U_PF_WINDOWS
-# define U_MAKE_IS_NMAKE 1
-#else
-# define U_MAKE_IS_NMAKE 0
-#endif
-
-/** @} */
-
/*===========================================================================*/
/* Custom icu entry point renaming */
/*===========================================================================*/
#define __UTRIE2_H__
#include "unicode/utypes.h"
+#include "putilimp.h"
#include "udataswp.h"
U_CDECL_BEGIN
/**************************************************************************
*
-* Copyright (C) 2000-2008, International Business Machines
+* Copyright (C) 2000-2011, International Business Machines
* Corporation and others. All Rights Reserved.
*
***************************************************************************
#include "cmemory.h"
#include "cstring.h"
#include "pkgtypes.h"
-
+#include "putilimp.h"
const char *pkg_writeCharListWrap(FileStream *s, CharList *l, const char *delim, const char *brk, int32_t quote)
{
/******************************************************************************
- * Copyright (C) 2009, International Business Machines
+ * Copyright (C) 2009-2011, International Business Machines
* Corporation and others. All Rights Reserved.
*******************************************************************************
*/
#include "filestrm.h"
#include "cstring.h"
#include "unicode/putil.h"
+#include "putilimp.h"
#include <stdio.h>
#include <stdlib.h>