]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/common/unicode/platform.h.in
ICU-8.11.4.tar.gz
[apple/icu.git] / icuSources / common / unicode / platform.h.in
index e1dcfdc1488bba202e6f0aa78d83c904997dba93..80766a253e2e8fc05b96da31424f101fff58a541 100644 (file)
@@ -1,7 +1,7 @@
 /*
 ******************************************************************************
 *
-*   Copyright (C) 1997-2004, International Business Machines
+*   Copyright (C) 1997-2006, International Business Machines
 *   Corporation and others.  All Rights Reserved.
 *
 ******************************************************************************
 ******************************************************************************
 */
 
+/**
+ * \file 
+ * \brief Basic types for the platform 
+ */
+
 /* Define the platform we're on. */
 #ifndef @platform@
 #define @platform@
@@ -192,6 +197,11 @@ typedef unsigned int uint32_t;
 #define U_ENABLE_TRACING @U_ENABLE_TRACING@
 #endif
 
+/* Do we allow ICU users to use the draft APIs by default? */
+#ifndef U_DEFAULT_SHOW_DRAFT
+#define U_DEFAULT_SHOW_DRAFT @U_DEFAULT_SHOW_DRAFT@
+#endif
+
 /* Define the library suffix in a C syntax. */
 #define U_HAVE_LIB_SUFFIX @U_HAVE_LIB_SUFFIX@
 #define U_LIB_SUFFIX_C_NAME @ICULIBSUFFIXCNAME@
@@ -201,7 +211,7 @@ typedef unsigned int uint32_t;
 /* Character data types                                                      */
 /*===========================================================================*/
 
-#if defined(OS390) || defined(OS400)
+#if ((defined(OS390) && (!defined(__CHARSET_LIB) || !__CHARSET_LIB))) || defined(OS400)
 #   define U_CHARSET_FAMILY 1
 #endif
 
@@ -239,7 +249,16 @@ typedef unsigned int uint32_t;
 /* Symbol import-export control                                              */
 /*===========================================================================*/
 
+#if defined(U_DARWIN) && defined(__GNUC__) && (__GNUC__ >= 4)
+#define USE_GCC_VISIBILITY_ATTRIBUTE 1
+#endif
+
+#ifdef USE_GCC_VISIBILITY_ATTRIBUTE
+#define U_EXPORT __attribute__((visibility("default")))
+#else
 #define U_EXPORT
+#endif
+
 /* U_CALLCONV is releated to U_EXPORT2 */
 #define U_EXPORT2
 
@@ -255,7 +274,11 @@ typedef unsigned int uint32_t;
 /*===========================================================================*/
 
 #ifndef U_INLINE
-#define U_INLINE @U_INLINE@
+#   ifdef __cplusplus
+#       define U_INLINE inline
+#   else
+#       define U_INLINE @U_INLINE@
+#   endif
 #endif
 
 #define U_ALIGN_CODE(n)