]> granicus.if.org Git - clang/commitdiff
Enabling the UTF conversion routines that were previously conditionally ifdef'ed...
authorEnrico Granata <egranata@apple.com>
Thu, 6 Sep 2012 17:03:42 +0000 (17:03 +0000)
committerEnrico Granata <egranata@apple.com>
Thu, 6 Sep 2012 17:03:42 +0000 (17:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163331 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/ConvertUTF.h
lib/Basic/ConvertUTF.c

index e7cfa8a7677ce93c4d1cb995301bc58372ce03bd..5be304b475b3421adb4c0d00aea2ad99f044f07d 100644 (file)
@@ -147,7 +147,6 @@ ConversionResult ConvertUTF32toUTF8 (
   const UTF32** sourceStart, const UTF32* sourceEnd,
   UTF8** targetStart, UTF8* targetEnd, ConversionFlags flags);
 
-#ifdef CLANG_NEEDS_THESE_ONE_DAY
 ConversionResult ConvertUTF16toUTF32 (
   const UTF16** sourceStart, const UTF16* sourceEnd,
   UTF32** targetStart, UTF32* targetEnd, ConversionFlags flags);
@@ -194,7 +193,6 @@ bool ConvertUTF8toWide(unsigned WideCharWidth, llvm::StringRef Source,
 bool ConvertCodePointToUTF8(unsigned Source, char *&ResultPtr);
 
 }
-#endif
 
 #endif
 
index 4793b251f603b18e712f319bc71ed634ab9ffe43..2e25e79c4c6e14dfef1fb75344bbe0c33b7d1f66 100644 (file)
@@ -111,7 +111,6 @@ static const UTF8 firstByteMark[7] = { 0x00, 0x00, 0xC0, 0xE0, 0xF0, 0xF8, 0xFC
  * into an inline function.
  */
 
-#ifdef CLANG_NEEDS_THESE_ONE_DAY
 
 /* --------------------------------------------------------------------- */
 
@@ -285,7 +284,6 @@ ConversionResult ConvertUTF16toUTF8 (
     *targetStart = target;
     return result;
 }
-#endif
 
 /* --------------------------------------------------------------------- */