From 7e191502dec7eee74318f42aa5de3ddf7a910b49 Mon Sep 17 00:00:00 2001 From: George Rhoten Date: Sun, 13 Mar 2005 19:49:45 +0000 Subject: [PATCH] ICU-4436 Allow RTTI to work when /OPT:ICF (COMDAT folding) is used. X-SVN-Rev: 17333 --- icu4c/source/common/common.vcproj | 7 +++++-- icu4c/source/common/unicode/uobject.h | 6 +++--- icu4c/source/i18n/i18n.vcproj | 1 + icu4c/source/io/io.vcproj | 1 + icu4c/source/layout/layout.vcproj | 1 + icu4c/source/layoutex/layoutex.vcproj | 1 + icu4c/source/tools/ctestfw/ctestfw.vcproj | 1 + icu4c/source/tools/toolutil/toolutil.vcproj | 1 + 8 files changed, 14 insertions(+), 5 deletions(-) diff --git a/icu4c/source/common/common.vcproj b/icu4c/source/common/common.vcproj index 7e932ceb6e0..bd41e4eb89a 100644 --- a/icu4c/source/common/common.vcproj +++ b/icu4c/source/common/common.vcproj @@ -42,6 +42,7 @@ LinkIncremental="1" SuppressStartupBanner="TRUE" ProgramDatabaseFile=".\..\..\lib\icuuc33.pdb" + EnableCOMDATFolding="2" BaseAddress="0x4a800000" ImportLibrary="..\..\lib\icuuc.lib"/> diff --git a/icu4c/source/common/unicode/uobject.h b/icu4c/source/common/unicode/uobject.h index 49f6ed0c696..14c80d5b8ed 100644 --- a/icu4c/source/common/unicode/uobject.h +++ b/icu4c/source/common/unicode/uobject.h @@ -1,7 +1,7 @@ /* ****************************************************************************** * -* Copyright (C) 2002-2004, International Business Machines +* Copyright (C) 2002-2005, International Business Machines * Corporation and others. All Rights Reserved. * ****************************************************************************** @@ -237,7 +237,7 @@ protected: */ #define UOBJECT_DEFINE_RTTI_IMPLEMENTATION(myClass) \ UClassID U_EXPORT2 myClass::getStaticClassID() { \ - static const char classID = 0; \ + static char classID = 0; \ return (UClassID)&classID; \ } \ UClassID myClass::getDynamicClassID() const \ @@ -254,7 +254,7 @@ protected: */ #define UOBJECT_DEFINE_ABSTRACT_RTTI_IMPLEMENTATION(myClass) \ UClassID U_EXPORT2 myClass::getStaticClassID() { \ - static const char classID = 0; \ + static char classID = 0; \ return (UClassID)&classID; \ } diff --git a/icu4c/source/i18n/i18n.vcproj b/icu4c/source/i18n/i18n.vcproj index 470f16805e3..5d8c85a75a3 100644 --- a/icu4c/source/i18n/i18n.vcproj +++ b/icu4c/source/i18n/i18n.vcproj @@ -43,6 +43,7 @@ LinkIncremental="1" SuppressStartupBanner="TRUE" ProgramDatabaseFile=".\..\..\lib\icuin33.pdb" + EnableCOMDATFolding="2" BaseAddress="0x4a900000" ImportLibrary="..\..\lib\icuin.lib"/>