diff options
author | Kurt Zenker <kz@openoffice.org> | 2006-12-12 15:13:20 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2006-12-12 15:13:20 +0000 |
commit | d483b6c103091fe4a9fc6b28c8f1dc5b15ee8abb (patch) | |
tree | 35d998a27de81828d03b1bee3fb300f2b98fa7b2 /i18npool/inc | |
parent | b37ac9a69b00381ccbc79426a2faad6076cf4ef2 (diff) |
INTEGRATION: CWS icuupgrade (1.1.2); FILE ADDED
2006/08/04 12:25:57 er 1.1.2.1: #i60645# warnings guards for some ICU header files
Diffstat (limited to 'i18npool/inc')
-rw-r--r-- | i18npool/inc/warnings_guard_unicode_tblcoll.h | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/i18npool/inc/warnings_guard_unicode_tblcoll.h b/i18npool/inc/warnings_guard_unicode_tblcoll.h new file mode 100644 index 000000000000..333a415e137c --- /dev/null +++ b/i18npool/inc/warnings_guard_unicode_tblcoll.h @@ -0,0 +1,56 @@ +/************************************************************************* + * + * OpenOffice.org - a multi-platform office productivity suite + * + * $RCSfile: warnings_guard_unicode_tblcoll.h,v $ + * + * $Revision: 1.2 $ + * + * last change: $Author: kz $ $Date: 2006-12-12 16:13:20 $ + * + * The Contents of this file are made available subject to + * the terms of GNU Lesser General Public License Version 2.1. + * + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2005 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + ************************************************************************/ + +#ifndef INCLUDED_WARNINGS_GUARD_UNICODE_TBLCOLL_H +#define INCLUDED_WARNINGS_GUARD_UNICODE_TBLCOLL_H + +// Because the GCC system_header mechanism doesn't work in .c/.cxx compilation +// units and more important affects the rest of the current include file, the +// warnings guard is separated into this header file on its own. + +// External unicode includes (from icu) cause warning C4668 on Windows. +// We want to minimize the patches to external headers, so the warnings are +// disabled here instead of in the header file itself. +#ifdef _MSC_VER +#pragma warning(push, 1) +#elif defined __GNUC__ +#pragma GCC system_header +#endif +#include <unicode/tblcoll.h> +#ifdef _MSC_VER +#pragma warning(pop) +#endif + +#endif // INCLUDED_WARNINGS_GUARD_UNICODE_TBLCOLL_H |