]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
open-vm-tools: fix build without ICU.
authorVMware, Inc <>
Thu, 27 Oct 2011 18:37:39 +0000 (11:37 -0700)
committerMarcelo Vanzin <mvanzin@vmware.com>
Thu, 27 Oct 2011 18:37:39 +0000 (11:37 -0700)
Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
open-vm-tools/configure.ac
open-vm-tools/lib/misc/codesetOld.h

index 0407e21dd5c78d689b0dd342f87bfae9539b4d1f..038a869a2b65d514921bcd58890c71f1216fe96e 100644 (file)
@@ -852,7 +852,7 @@ for TEST_CFLAG in -Wno-pointer-sign -Wno-unused-value -fno-strict-aliasing \
    CFLAGS="$ORIGINAL_CFLAGS$NEW_CFLAG"
 done
 CPPFLAGS="$CPPFLAGS -DVMX86_TOOLS"
-CPPFLAGS="$CPPFLAGS -DNO_CORE_ICU"
+CPPFLAGS="$CPPFLAGS"
 
 # -fvisibility is used by "core service" plugins, but not required.
 ORIGINAL_CFLAGS="$CFLAGS"
index bf640a547d5e610f7614ee6e3da936e6824f950f..a6962228f3f5e1488b666e5e52c2375fa326edb1 100644 (file)
 #endif
 
 
-/*
- * NO_CORE_ICU is currently only used by oddball Tools builds
- * (non-Linux, non-Windows, non-Mac, source). It means "don't compile
- * our borrowed ICU source". Even if we don't do that, however, it's
- * still possible to use the system ICU libraries if USE_ICU is
- * defined (currently only for open-source tools builds.
- *
- * Since codeset.c is the ICU layer over codesetOld.c, if we are NOT
- * using either variety of ICU, then we won't be compiling codeset.c,
- * and thus need to transparently convert codeset calls to old codeset
- * calls.
- */
-
-#if defined(NO_CORE_ICU) && !defined(USE_ICU)
-#define CodeSetOld_GenericToGenericDb CodeSet_GenericToGenericDb
-#define CodeSetOld_GenericToGeneric CodeSet_GenericToGeneric
-#define CodeSetOld_Utf8ToCurrent CodeSet_Utf8ToCurrent
-#define CodeSetOld_CurrentToUtf8 CodeSet_CurrentToUtf8
-#define CodeSetOld_Utf16leToUtf8Db CodeSet_Utf16leToUtf8Db
-#define CodeSetOld_Utf16leToUtf8 CodeSet_Utf16leToUtf8
-#define CodeSetOld_Utf8ToUtf16le CodeSet_Utf8ToUtf16le
-#define CodeSetOld_CurrentToUtf16le CodeSet_CurrentToUtf16le
-#define CodeSetOld_Utf16leToCurrent CodeSet_Utf16leToCurrent
-#define CodeSetOld_Utf16beToCurrent CodeSet_Utf16beToCurrent
-#define CodeSetOld_Utf8FormDToUtf8FormC CodeSet_Utf8FormDToUtf8FormC
-#define CodeSetOld_Utf8FormCToUtf8FormD CodeSet_Utf8FormCToUtf8FormD
-#define CodeSetOld_GetCurrentCodeSet CodeSet_GetCurrentCodeSet
-#define CodeSetOld_IsEncodingSupported CodeSet_IsEncodingSupported
-#define CodeSetOld_Validate CodeSet_Validate
-#define CodeSetOld_Init CodeSet_Init
-#endif
-
 Bool
 CodeSetOld_GenericToGenericDb(char const *codeIn,  // IN
                               char const *bufIn,   // IN