ICU4C 79
Loading...
Searching...
No Matches
platform.h
Go to the documentation of this file.
1// © 2016 and later: Unicode, Inc. and others.
2// License & terms of use: http://www.unicode.org/copyright.html
3/*
4******************************************************************************
5*
6* Copyright (C) 1997-2016, International Business Machines
7* Corporation and others. All Rights Reserved.
8*
9******************************************************************************
10*
11* FILE NAME : platform.h
12*
13* Date Name Description
14* 05/13/98 nos Creation (content moved here from ptypes.h).
15* 03/02/99 stephen Added AS400 support.
16* 03/30/99 stephen Added Linux support.
17* 04/13/99 stephen Reworked for autoconf.
18******************************************************************************
19*/
20
21#ifndef _PLATFORM_H
22#define _PLATFORM_H
23
24#include "unicode/uconfig.h"
25#include "unicode/uvernum.h"
26
54
59#ifdef U_IN_DOXYGEN
60/*
61 * Problem: "platform.h:335: warning: documentation for unknown define U_HAVE_STD_STRING found." means that U_HAVE_STD_STRING is not documented.
62 * Solution: #define any defines for non @internal API here, so that they are visible in the docs. If you just set PREDEFINED in Doxyfile.in, they won't be documented.
63 */
64
65/* None for now. */
66#endif
67
87
89#define U_PF_UNKNOWN 0
91#define U_PF_WINDOWS 1000
93#define U_PF_MINGW 1800
99#define U_PF_CYGWIN 1900
100/* Reserve 2000 for U_PF_UNIX? */
102#define U_PF_HPUX 2100
104#define U_PF_SOLARIS 2600
106#define U_PF_BSD 3000
108#define U_PF_AIX 3100
110#define U_PF_IRIX 3200
119#define U_PF_DARWIN 3500
121#define U_PF_IPHONE 3550
123#define U_PF_QNX 3700
125#define U_PF_LINUX 4000
132#define U_PF_BROWSER_NATIVE_CLIENT 4020
134#define U_PF_ANDROID 4050
136#define U_PF_HAIKU 4080
138#define U_PF_FUCHSIA 4100
139/* Maximum value for Linux-based platform is 4499 */
147#define U_PF_EMSCRIPTEN 5010
149#define U_PF_OS390 9000
151#define U_PF_OS400 9400
152
153#ifdef U_PLATFORM
154 /* Use the predefined value. */
155#elif defined(__MINGW32__)
156# define U_PLATFORM U_PF_MINGW
157#elif defined(__CYGWIN__)
158# define U_PLATFORM U_PF_CYGWIN
159 /* Cygwin uchar.h doesn't exist until Cygwin 3.5. */
160# include <cygwin/version.h>
161#elif defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
162# define U_PLATFORM U_PF_WINDOWS
163#elif defined(__ANDROID__)
164# define U_PLATFORM U_PF_ANDROID
165 /* Android wchar_t support depends on the API level. */
166# include <android/api-level.h>
167#elif defined(__pnacl__) || defined(__native_client__)
168# define U_PLATFORM U_PF_BROWSER_NATIVE_CLIENT
169#elif defined(__Fuchsia__)
170# define U_PLATFORM U_PF_FUCHSIA
171#elif defined(linux) || defined(__linux__) || defined(__linux)
172# define U_PLATFORM U_PF_LINUX
173#elif defined(__APPLE__) && defined(__MACH__)
174# include <TargetConditionals.h>
175# if (defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE) && (defined(TARGET_OS_MACCATALYST) && !TARGET_OS_MACCATALYST) /* variant of TARGET_OS_MAC */
176# define U_PLATFORM U_PF_IPHONE
177# else
178# define U_PLATFORM U_PF_DARWIN
179# endif
180#elif defined(BSD) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__MirBSD__)
181# if defined(__FreeBSD__)
182# include <sys/endian.h>
183# endif
184# define U_PLATFORM U_PF_BSD
185#elif defined(sun) || defined(__sun)
186 /* Check defined(__SVR4) || defined(__svr4__) to distinguish Solaris from SunOS? */
187# define U_PLATFORM U_PF_SOLARIS
188# if defined(__GNUC__)
189 /* Solaris/GCC needs this header file to get the proper endianness. Normally, this
190 * header file is included with stddef.h but on Solairs/GCC, the GCC version of stddef.h
191 * is included which does not include this header file.
192 */
193# include <sys/isa_defs.h>
194# endif
195#elif defined(_AIX) || defined(__TOS_AIX__)
196# define U_PLATFORM U_PF_AIX
197#elif defined(_hpux) || defined(hpux) || defined(__hpux)
198# define U_PLATFORM U_PF_HPUX
199#elif defined(sgi) || defined(__sgi)
200# define U_PLATFORM U_PF_IRIX
201#elif defined(__QNX__) || defined(__QNXNTO__)
202# define U_PLATFORM U_PF_QNX
203#elif defined(__TOS_MVS__)
204# define U_PLATFORM U_PF_OS390
205#elif defined(__OS400__) || defined(__TOS_OS400__)
206# define U_PLATFORM U_PF_OS400
207#elif defined(__HAIKU__)
208# define U_PLATFORM U_PF_HAIKU
209#elif defined(__EMSCRIPTEN__)
210# define U_PLATFORM U_PF_EMSCRIPTEN
211#else
212# define U_PLATFORM U_PF_UNKNOWN
213#endif
214
222#if (defined(_MSC_VER) && !(defined(__clang__) && __clang__)) || defined(U_IN_DOXYGEN)
223# define U_REAL_MSVC
224#endif
225
232/* Commented out because this is already set in mh-cygwin-msvc
233#if U_PLATFORM == U_PF_CYGWIN && defined(_MSC_VER)
234# define CYGWINMSVC
235#endif
236*/
237#ifdef U_IN_DOXYGEN
238# define CYGWINMSVC
239#endif
240
247#ifdef U_PLATFORM_USES_ONLY_WIN32_API
248 /* Use the predefined value. */
249#elif (U_PF_WINDOWS <= U_PLATFORM && U_PLATFORM <= U_PF_MINGW) || defined(CYGWINMSVC)
250# define U_PLATFORM_USES_ONLY_WIN32_API 1
251#else
252 /* Cygwin implements POSIX. */
253# define U_PLATFORM_USES_ONLY_WIN32_API 0
254#endif
255
262#ifdef U_PLATFORM_HAS_WIN32_API
263 /* Use the predefined value. */
264#elif U_PF_WINDOWS <= U_PLATFORM && U_PLATFORM <= U_PF_CYGWIN
265# define U_PLATFORM_HAS_WIN32_API 1
266#else
267# define U_PLATFORM_HAS_WIN32_API 0
268#endif
269
276#ifdef U_PLATFORM_HAS_WINUWP_API
277 /* Use the predefined value. */
278#else
279# define U_PLATFORM_HAS_WINUWP_API 0
280#endif
281
288#ifdef U_PLATFORM_IMPLEMENTS_POSIX
289 /* Use the predefined value. */
290#elif U_PLATFORM_USES_ONLY_WIN32_API
291# define U_PLATFORM_IMPLEMENTS_POSIX 0
292#else
293# define U_PLATFORM_IMPLEMENTS_POSIX 1
294#endif
295
301#ifdef U_PLATFORM_IS_LINUX_BASED
302 /* Use the predefined value. */
303#elif U_PF_LINUX <= U_PLATFORM && U_PLATFORM <= 4499
304# define U_PLATFORM_IS_LINUX_BASED 1
305#else
306# define U_PLATFORM_IS_LINUX_BASED 0
307#endif
308
314#ifdef U_PLATFORM_IS_DARWIN_BASED
315 /* Use the predefined value. */
316#elif U_PF_DARWIN <= U_PLATFORM && U_PLATFORM <= U_PF_IPHONE
317# define U_PLATFORM_IS_DARWIN_BASED 1
318#else
319# define U_PLATFORM_IS_DARWIN_BASED 0
320#endif
321
322/*===========================================================================*/
324/*===========================================================================*/
325
336#ifdef __GNUC__
337# define U_GCC_MAJOR_MINOR (__GNUC__ * 100 + __GNUC_MINOR__)
338#else
339# define U_GCC_MAJOR_MINOR 0
340#endif
341
347#ifdef U_IS_BIG_ENDIAN
348 /* Use the predefined value. */
349#elif defined(BYTE_ORDER) && defined(BIG_ENDIAN)
350# define U_IS_BIG_ENDIAN (BYTE_ORDER == BIG_ENDIAN)
351#elif defined(__BYTE_ORDER__) && defined(__ORDER_BIG_ENDIAN__)
352 /* gcc */
353# define U_IS_BIG_ENDIAN (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__)
354#elif defined(__BIG_ENDIAN__) || defined(_BIG_ENDIAN)
355# define U_IS_BIG_ENDIAN 1
356#elif defined(__LITTLE_ENDIAN__) || defined(_LITTLE_ENDIAN)
357# define U_IS_BIG_ENDIAN 0
358#elif U_PLATFORM == U_PF_OS390 || U_PLATFORM == U_PF_OS400 || defined(__s390__) || defined(__s390x__)
359 /* These platforms do not appear to predefine any endianness macros. */
360# define U_IS_BIG_ENDIAN 1
361#elif defined(_PA_RISC1_0) || defined(_PA_RISC1_1) || defined(_PA_RISC2_0)
362 /* HPPA do not appear to predefine any endianness macros. */
363# define U_IS_BIG_ENDIAN 1
364#elif defined(sparc) || defined(__sparc) || defined(__sparc__)
365 /* Some sparc based systems (e.g. Linux) do not predefine any endianness macros. */
366# define U_IS_BIG_ENDIAN 1
367#else
368# define U_IS_BIG_ENDIAN 0
369#endif
370
377#ifdef U_HAVE_DEBUG_LOCATION_NEW
378 /* Use the predefined value. */
379#elif defined(_MSC_VER)
380# define U_HAVE_DEBUG_LOCATION_NEW 1
381#else
382# define U_HAVE_DEBUG_LOCATION_NEW 0
383#endif
384
385/* Compatibility with compilers other than clang: http://clang.llvm.org/docs/LanguageExtensions.html */
386#ifdef __has_attribute
387# define UPRV_HAS_ATTRIBUTE(x) __has_attribute(x)
388#else
389# define UPRV_HAS_ATTRIBUTE(x) 0
390#endif
391#ifdef __has_cpp_attribute
392# define UPRV_HAS_CPP_ATTRIBUTE(x) __has_cpp_attribute(x)
393#else
394# define UPRV_HAS_CPP_ATTRIBUTE(x) 0
395#endif
396#ifdef __has_declspec_attribute
397# define UPRV_HAS_DECLSPEC_ATTRIBUTE(x) __has_declspec_attribute(x)
398#else
399# define UPRV_HAS_DECLSPEC_ATTRIBUTE(x) 0
400#endif
401#ifdef __has_builtin
402# define UPRV_HAS_BUILTIN(x) __has_builtin(x)
403#else
404# define UPRV_HAS_BUILTIN(x) 0
405#endif
406#ifdef __has_feature
407# define UPRV_HAS_FEATURE(x) __has_feature(x)
408#else
409# define UPRV_HAS_FEATURE(x) 0
410#endif
411#if UPRV_HAS_FEATURE(address_sanitizer) || \
412 UPRV_HAS_FEATURE(memory_sanitizer) || \
413 UPRV_HAS_FEATURE(thread_sanitizer) || \
414 UPRV_HAS_FEATURE(undefined_sanitizer) || \
415 defined(__SANITIZE_ADDRESS__) || \
416 defined(__SANITIZE_THREAD__) || \
417 defined(__SANITIZE_UNDEFINED__)
418# define UPRV_HAS_SANITIZER 1
419#else
420# define UPRV_HAS_SANITIZER 0
421#endif
422#ifdef __has_extension
423# define UPRV_HAS_EXTENSION(x) __has_extension(x)
424#else
425# define UPRV_HAS_EXTENSION(x) 0
426#endif
427#ifdef __has_warning
428# define UPRV_HAS_WARNING(x) __has_warning(x)
429#else
430# define UPRV_HAS_WARNING(x) 0
431#endif
432
433
434#if defined(__clang__)
435#define UPRV_NO_SANITIZE_FUNCTION __attribute__((no_sanitize("function")))
436#define UPRV_NO_SANITIZE_UNDEFINED __attribute__((no_sanitize("undefined")))
437#else
438#define UPRV_NO_SANITIZE_FUNCTION
439#define UPRV_NO_SANITIZE_UNDEFINED
440#endif
441
447#if defined(__GNUC__) && __GNUC__>=3
448# define U_MALLOC_ATTR __attribute__ ((__malloc__))
449#else
450# define U_MALLOC_ATTR
451#endif
452
458#if (defined(__GNUC__) && \
459 (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))) || \
460 UPRV_HAS_ATTRIBUTE(alloc_size)
461# define U_ALLOC_SIZE_ATTR(X) __attribute__ ((alloc_size(X)))
462# define U_ALLOC_SIZE_ATTR2(X,Y) __attribute__ ((alloc_size(X,Y)))
463#else
464# define U_ALLOC_SIZE_ATTR(X)
465# define U_ALLOC_SIZE_ATTR2(X,Y)
466#endif
467
474#ifdef U_CPLUSPLUS_VERSION
475# if U_CPLUSPLUS_VERSION != 0 && !defined(__cplusplus)
476# undef U_CPLUSPLUS_VERSION
477# define U_CPLUSPLUS_VERSION 0
478# endif
479 /* Otherwise use the predefined value. */
480#elif !defined(__cplusplus)
481# define U_CPLUSPLUS_VERSION 0
482// The value of _MSVC_LANG for C++23 preview is undocumented, except that it is larger than 202002.
483// As of this writing, it is 202004.
484#elif __cplusplus >= 202302L || (defined(_MSVC_LANG) && _MSVC_LANG > 202002L)
485# define U_CPLUSPLUS_VERSION 23
486#elif __cplusplus >= 202002L || (defined(_MSVC_LANG) && _MSVC_LANG >= 202002L)
487# define U_CPLUSPLUS_VERSION 20
488#elif __cplusplus >= 201703L || (defined(_MSVC_LANG) && _MSVC_LANG >= 201703L)
489# define U_CPLUSPLUS_VERSION 17
490#elif __cplusplus >= 201402L || (defined(_MSVC_LANG) && _MSVC_LANG >= 201402L)
491# define U_CPLUSPLUS_VERSION 14
492#elif __cplusplus >= 201103L || (defined(_MSVC_LANG) && _MSVC_LANG >= 201103L)
493# define U_CPLUSPLUS_VERSION 11
494#else
495 // C++98 or C++03
496# define U_CPLUSPLUS_VERSION 1
497#endif
498
505#if defined(U_FALLTHROUGH)
506 // Use the predefined value.
507#elif defined(__clang__)
508 // Test for compiler vs. feature separately.
509 // Other compilers might choke on the feature test.
510# if UPRV_HAS_CPP_ATTRIBUTE(clang::fallthrough) || \
511 (UPRV_HAS_FEATURE(cxx_attributes) && \
512 UPRV_HAS_WARNING("-Wimplicit-fallthrough"))
513# define U_FALLTHROUGH [[clang::fallthrough]]
514# endif
515#elif defined(__GNUC__) && (__GNUC__ >= 7)
516# define U_FALLTHROUGH __attribute__((fallthrough))
517#endif
518
519#ifndef U_FALLTHROUGH
520# define U_FALLTHROUGH
521#endif
522
523#ifndef U_IN_DOXYGEN
537#ifndef __cplusplus
538// Not for C.
539#elif defined(U_LIFETIME_BOUND)
540// Use the predefined value.
541#elif UPRV_HAS_CPP_ATTRIBUTE(clang::lifetimebound)
542# define U_LIFETIME_BOUND [[clang::lifetimebound]]
543#elif UPRV_HAS_CPP_ATTRIBUTE(msvc::lifetimebound)
544# define U_LIFETIME_BOUND [[msvc::lifetimebound]]
545#elif UPRV_HAS_ATTRIBUTE(lifetimebound)
546# define U_LIFETIME_BOUND __attribute__((lifetimebound))
547#endif
548
549#ifndef U_LIFETIME_BOUND
550# define U_LIFETIME_BOUND
551#endif
552#endif
553
555
556/*===========================================================================*/
558/*===========================================================================*/
559
564#define U_ASCII_FAMILY 0
565
570#define U_EBCDIC_FAMILY 1
571
614#ifdef U_CHARSET_FAMILY
615 /* Use the predefined value. */
616#elif U_PLATFORM == U_PF_OS390 && (!defined(__CHARSET_LIB) || !__CHARSET_LIB)
617# define U_CHARSET_FAMILY U_EBCDIC_FAMILY
618#elif U_PLATFORM == U_PF_OS400 && !defined(__UTF32__)
619# define U_CHARSET_FAMILY U_EBCDIC_FAMILY
620#else
621# define U_CHARSET_FAMILY U_ASCII_FAMILY
622#endif
623
644#ifdef U_CHARSET_IS_UTF8
645 /* Use the predefined value. */
646#elif U_PLATFORM_IS_LINUX_BASED || U_PLATFORM_IS_DARWIN_BASED || \
647 U_PLATFORM == U_PF_EMSCRIPTEN
648# define U_CHARSET_IS_UTF8 1
649#else
650# define U_CHARSET_IS_UTF8 0
651#endif
652
654
655/*===========================================================================*/
657/*===========================================================================*/
658
665#ifdef U_HAVE_WCHAR_H
666 /* Use the predefined value. */
667#elif U_PLATFORM == U_PF_ANDROID && __ANDROID_API__ < 9
668 /*
669 * Android before Gingerbread (Android 2.3, API level 9) did not support wchar_t.
670 * The type and header existed, but the library functions did not work as expected.
671 * The size of wchar_t was 1 but L"xyz" string literals had 32-bit units anyway.
672 */
673# define U_HAVE_WCHAR_H 0
674#else
675# define U_HAVE_WCHAR_H 1
676#endif
677
684#ifdef U_SIZEOF_WCHAR_T
685 /* Use the predefined value. */
686#elif (U_PLATFORM == U_PF_ANDROID && __ANDROID_API__ < 9)
687 /*
688 * Classic Mac OS and Mac OS X before 10.3 (Panther) did not support wchar_t or wstring.
689 * Newer Mac OS X has size 4.
690 */
691# define U_SIZEOF_WCHAR_T 1
692#elif U_PLATFORM_HAS_WIN32_API || U_PLATFORM == U_PF_CYGWIN
693# define U_SIZEOF_WCHAR_T 2
694#elif U_PLATFORM == U_PF_AIX
695 /*
696 * AIX 6.1 information, section "Wide character data representation":
697 * "... the wchar_t datatype is 32-bit in the 64-bit environment and
698 * 16-bit in the 32-bit environment."
699 * and
700 * "All locales use Unicode for their wide character code values (process code),
701 * except the IBM-eucTW codeset."
702 */
703# ifdef __64BIT__
704# define U_SIZEOF_WCHAR_T 4
705# else
706# define U_SIZEOF_WCHAR_T 2
707# endif
708#elif U_PLATFORM == U_PF_OS390
709 /*
710 * z/OS V1R11 information center, section "LP64 | ILP32":
711 * "In 31-bit mode, the size of long and pointers is 4 bytes and the size of wchar_t is 2 bytes.
712 * Under LP64, the size of long and pointer is 8 bytes and the size of wchar_t is 4 bytes."
713 */
714# ifdef _LP64
715# define U_SIZEOF_WCHAR_T 4
716# else
717# define U_SIZEOF_WCHAR_T 2
718# endif
719#elif U_PLATFORM == U_PF_OS400
720# if defined(__UTF32__)
721 /*
722 * LOCALETYPE(*LOCALEUTF) is specified.
723 * Wide-character strings are in UTF-32,
724 * narrow-character strings are in UTF-8.
725 */
726# define U_SIZEOF_WCHAR_T 4
727# elif defined(__UCS2__)
728 /*
729 * LOCALETYPE(*LOCALEUCS2) is specified.
730 * Wide-character strings are in UCS-2,
731 * narrow-character strings are in EBCDIC.
732 */
733# define U_SIZEOF_WCHAR_T 2
734# else
735 /*
736 * LOCALETYPE(*CLD) or LOCALETYPE(*LOCALE) is specified.
737 * Wide-character strings are in 16-bit EBCDIC,
738 * narrow-character strings are in EBCDIC.
739 */
740# define U_SIZEOF_WCHAR_T 2
741# endif
742#else
743# define U_SIZEOF_WCHAR_T 4
744#endif
745
746#ifndef U_HAVE_WCSCPY
747#define U_HAVE_WCSCPY U_HAVE_WCHAR_H
748#endif
749
751
760#ifdef U_HAVE_CHAR16_T
761 /* Use the predefined value. */
762#else
763 /*
764 * Notes:
765 * C++11 and C11 require support for UTF-16 literals
766 * Doesn't work on Mac C11 (see workaround in ptypes.h)
767 * or Cygwin less than 3.5.
768 */
769# if defined(__cplusplus)
770# define U_HAVE_CHAR16_T 1
771# elif U_PLATFORM_IS_DARWIN_BASED || (U_PLATFORM == U_PF_CYGWIN && CYGWIN_VERSION_DLL_MAJOR < 3005)
772# define U_HAVE_CHAR16_T 0
773# else
774 // conformant C11
775# define U_HAVE_CHAR16_T 1
776# endif
777#endif
778
788#ifdef U_DECLARE_UTF16
789 /* Use the predefined value. */
790#elif U_HAVE_CHAR16_T \
791 || (defined(__xlC__) && defined(__IBM_UTF_LITERAL) && U_SIZEOF_WCHAR_T != 2) \
792 || (defined(__HP_aCC) && __HP_aCC >= 035000) \
793 || (defined(__HP_cc) && __HP_cc >= 111106) \
794 || (defined(U_IN_DOXYGEN))
795# define U_DECLARE_UTF16(string) u ## string
796#elif U_SIZEOF_WCHAR_T == 2 \
797 && (U_CHARSET_FAMILY == 0 || (U_PF_OS390 <= U_PLATFORM && U_PLATFORM <= U_PF_OS400 && defined(__UCS2__)))
798# define U_DECLARE_UTF16(string) L ## string
799#else
800 /* Leave U_DECLARE_UTF16 undefined. See unistr.h. */
801#endif
802
804
805/*===========================================================================*/
807/*===========================================================================*/
808
809#ifdef U_EXPORT
810 /* Use the predefined value. */
811#elif defined(U_STATIC_IMPLEMENTATION)
812# define U_EXPORT
813#elif defined(_MSC_VER) || (UPRV_HAS_DECLSPEC_ATTRIBUTE(__dllexport__) && \
814 UPRV_HAS_DECLSPEC_ATTRIBUTE(__dllimport__))
815# define U_EXPORT __declspec(dllexport)
816#elif defined(__GNUC__) || defined(__open_xl__)
817# define U_EXPORT __attribute__((visibility("default")))
818#elif (defined(__SUNPRO_CC) && __SUNPRO_CC >= 0x550) \
819 || (defined(__SUNPRO_C) && __SUNPRO_C >= 0x550)
820# define U_EXPORT __global
821/*#elif defined(__HP_aCC) || defined(__HP_cc)
822# define U_EXPORT __declspec(dllexport)*/
823#else
824# define U_EXPORT
825#endif
826
827/* U_CALLCONV is related to U_EXPORT2 */
828#ifdef U_EXPORT2
829 /* Use the predefined value. */
830#elif defined(_MSC_VER)
831# define U_EXPORT2 __cdecl
832#else
833# define U_EXPORT2
834#endif
835
836#ifdef U_IMPORT
837 /* Use the predefined value. */
838#elif defined(_MSC_VER) || (UPRV_HAS_DECLSPEC_ATTRIBUTE(__dllexport__) && \
839 UPRV_HAS_DECLSPEC_ATTRIBUTE(__dllimport__))
840 /* Windows needs to export/import data. */
841# define U_IMPORT __declspec(dllimport)
842#else
843# define U_IMPORT
844#endif
845
853#ifdef U_HIDDEN
854 /* Use the predefined value. */
855#elif defined(__GNUC__) || defined(__open_xl__)
856# define U_HIDDEN __attribute__((visibility("hidden")))
857#else
858# define U_HIDDEN
859#endif
860
878#if U_PLATFORM == U_PF_OS390 && defined(__cplusplus)
879# define U_CALLCONV __cdecl
880#else
881# define U_CALLCONV U_EXPORT2
882#endif
883
889#if U_PLATFORM == U_PF_OS390 && defined(__cplusplus)
890# define U_CALLCONV_FPTR U_CALLCONV
891#else
892# define U_CALLCONV_FPTR
893#endif
895
896#endif // _PLATFORM_H
User-configurable settings.
C API: definitions of ICU version numbers.