summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorFridrich Štrba <fridrich.strba@bluewin.ch>2013-08-26 14:36:23 +0200
committerThorsten Behrens <tbehrens@suse.com>2013-08-26 13:12:40 +0000
commit980cb9e125800dc29e0e37ccb6e5817881e640ae (patch)
tree8694e599ecafe49e0d229b68a2d9d94a814e847b /sc
parent8875f681585e73f3f37088d58c75bf04ad098e2e (diff)
Ugly bad and nasty workaround for some dupplicate symbols issue
Somehow, under same circumstances, MSVC creates object code for 2 inlined functions. Nobody here uses them, so simply define them away so that there be no dupplicate symbols anymore. The symbols extents and indices come from boost::multi_array. (cherry picked from commit 5b734c8e19ceb38ec2f632b14fbbc753d95de77e) Change-Id: I7283ecff340d95f16bb3a8d0aae97e166fa5f0e4 Reviewed-on: https://gerrit.libreoffice.org/5633 Reviewed-by: Thorsten Behrens <tbehrens@suse.com> Tested-by: Thorsten Behrens <tbehrens@suse.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/Accessibility/AccessibleDocument.cxx25
-rw-r--r--sc/source/ui/Accessibility/AccessiblePreviewHeaderCell.cxx25
2 files changed, 50 insertions, 0 deletions
diff --git a/sc/source/ui/Accessibility/AccessibleDocument.cxx b/sc/source/ui/Accessibility/AccessibleDocument.cxx
index eec20b57ae7c..6ce612b816b7 100644
--- a/sc/source/ui/Accessibility/AccessibleDocument.cxx
+++ b/sc/source/ui/Accessibility/AccessibleDocument.cxx
@@ -17,6 +17,23 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+/* Somehow, under same circumstances, MSVC creates object code for 2
+ * inlined functions. Nobody here uses them, so simply define them away
+ * so that there be no dupplicate symbols anymore.
+
+ * The symbols "extents" and "indices" come from boost::multi_array.
+ */
+
+#ifdef indices
+#undef indices
+#endif
+#define indices dummy1_indices
+
+#ifdef extents
+#undef extents
+#endif
+#define extents dummy1_extents
+
#include "AccessibleDocument.hxx"
#include "AccessibleSpreadsheet.hxx"
#include "tabvwsh.hxx"
@@ -60,6 +77,14 @@
#include <list>
#include <algorithm>
+#ifdef indices
+#undef indices
+#endif
+
+#ifdef extents
+#undef extents
+#endif
+
using namespace ::com::sun::star;
using namespace ::com::sun::star::accessibility;
using ::std::for_each;
diff --git a/sc/source/ui/Accessibility/AccessiblePreviewHeaderCell.cxx b/sc/source/ui/Accessibility/AccessiblePreviewHeaderCell.cxx
index 12315f148b96..af8401daf6b8 100644
--- a/sc/source/ui/Accessibility/AccessiblePreviewHeaderCell.cxx
+++ b/sc/source/ui/Accessibility/AccessiblePreviewHeaderCell.cxx
@@ -17,6 +17,23 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+/* Somehow, under same circumstances, MSVC creates object code for 2
+ * inlined functions. Nobody here uses them, so simply define them away
+ * so that there be no dupplicate symbols anymore.
+
+ * The symbols "extents" and "indices" come from boost::multi_array.
+ */
+
+#ifdef indices
+#undef indices
+#endif
+#define indices dummy2_indices
+
+#ifdef extents
+#undef extents
+#endif
+#define extents dummy2_extents
+
#include "scitems.hxx"
#include <editeng/eeitem.hxx>
#include <tools/gen.hxx>
@@ -42,6 +59,14 @@
#include <comphelper/servicehelper.hxx>
#include <toolkit/helper/convert.hxx>
+#ifdef indices
+#undef indices
+#endif
+
+#ifdef extents
+#undef extents
+#endif
+
using namespace ::com::sun::star;
using namespace ::com::sun::star::accessibility;