]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/common/unicode/char16ptr.h
ICU-66108.tar.gz
[apple/icu.git] / icuSources / common / unicode / char16ptr.h
index d58029f7f040c183e28d6beff62d5ecb8cd62de6..c8a9ae6c35d646f7173d4fff6d5068914ce9408c 100644 (file)
@@ -7,9 +7,12 @@
 #ifndef __CHAR16PTR_H__
 #define __CHAR16PTR_H__
 
-#include <cstddef>
 #include "unicode/utypes.h"
 
+#if U_SHOW_CPLUSPLUS_API
+
+#include <cstddef>
+
 /**
  * \file
  * \brief C++ API: char16_t pointer wrappers with
@@ -17,7 +20,6 @@
  *        Also conversion functions from char16_t * to UChar * and OldUChar *.
  */
 
-#if U_SHOW_CPLUSPLUS_API
 U_NAMESPACE_BEGIN
 
 /**
@@ -305,6 +307,7 @@ inline OldUChar *toOldUCharPtr(char16_t *p) {
 }
 
 U_NAMESPACE_END
-#endif // U_SHOW_CPLUSPLUS_API
+
+#endif /* U_SHOW_CPLUSPLUS_API */
 
 #endif  // __CHAR16PTR_H__