summaryrefslogtreecommitdiffstats
path: root/connectivity/source/drivers/mozab/pre_include_mozilla.h
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2006-06-20 00:46:20 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2006-06-20 00:46:20 +0000
commit4b3e55c479b88ac70b96638fe7ffb720750b8f7d (patch)
tree50d08b967d4342e6ddc422854edb74d39b812665 /connectivity/source/drivers/mozab/pre_include_mozilla.h
parentINTEGRATION: CWS warnings01 (1.1.2); FILE ADDED (diff)
downloadcore-4b3e55c479b88ac70b96638fe7ffb720750b8f7d.tar.gz
core-4b3e55c479b88ac70b96638fe7ffb720750b8f7d.zip
INTEGRATION: CWS warnings01 (1.1.2); FILE ADDED
2005/12/22 11:44:52 fs 1.1.2.2: #i57457# warning-free code 2005/11/07 14:50:23 fs 1.1.2.1: #i57457# warning-free code
Diffstat (limited to 'connectivity/source/drivers/mozab/pre_include_mozilla.h')
-rw-r--r--connectivity/source/drivers/mozab/pre_include_mozilla.h68
1 files changed, 68 insertions, 0 deletions
diff --git a/connectivity/source/drivers/mozab/pre_include_mozilla.h b/connectivity/source/drivers/mozab/pre_include_mozilla.h
new file mode 100644
index 000000000000..cd75f43d7924
--- /dev/null
+++ b/connectivity/source/drivers/mozab/pre_include_mozilla.h
@@ -0,0 +1,68 @@
+/*************************************************************************
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * $RCSfile: pre_include_mozilla.h,v $
+ *
+ * $Revision: 1.2 $
+ *
+ * last change: $Author: hr $ $Date: 2006-06-20 01:46: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 BOOL
+# define MOZ_BOOL
+
+# define BOOL mozBOOL
+# define Bool mozBooL
+#endif
+
+// Turn off DEBUG Assertions
+#ifdef _DEBUG
+ #define _DEBUG_WAS_DEFINED _DEBUG
+ #undef _DEBUG
+#else
+ #undef _DEBUG_WAS_DEFINED
+#endif
+
+// and turn off the additional virtual methods which are part of some interfaces when compiled
+// with debug
+#ifdef DEBUG
+ #define DEBUG_WAS_DEFINED DEBUG
+ #undef DEBUG
+#else
+ #undef DEBUG_WAS_DEFINED
+#endif
+
+#if defined __GNUC__
+ #pragma GCC system_header
+#elif defined __SUNPRO_CC
+ #pragma disable_warn
+#elif defined _MSC_VER
+ #pragma warning(push, 1)
+ #pragma warning(disable:4946 4710)
+#endif
+