From: VMware, Inc <> Date: Thu, 27 Oct 2011 18:37:39 +0000 (-0700) Subject: open-vm-tools: fix build without ICU. X-Git-Tag: 2011.10.26-514583~25 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=98cb68ba017a327ba8456c2ede0bc7b6739b7a1d;p=thirdparty%2Fopen-vm-tools.git open-vm-tools: fix build without ICU. Signed-off-by: Marcelo Vanzin --- diff --git a/open-vm-tools/configure.ac b/open-vm-tools/configure.ac index 0407e21dd..038a869a2 100644 --- a/open-vm-tools/configure.ac +++ b/open-vm-tools/configure.ac @@ -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" diff --git a/open-vm-tools/lib/misc/codesetOld.h b/open-vm-tools/lib/misc/codesetOld.h index bf640a547..a6962228f 100644 --- a/open-vm-tools/lib/misc/codesetOld.h +++ b/open-vm-tools/lib/misc/codesetOld.h @@ -41,38 +41,6 @@ #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