summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-09-26 09:49:33 +0200
committerStephan Bergmann <sbergman@redhat.com>2012-09-26 09:49:33 +0200
commitcb7236fb473f91aaa6f414de1ba1e10bdfb93878 (patch)
treee0e3cf92aa01678bdc79d32ea2d197a9dd7871f1
parentDuplicate EXPLICIT fix for binfilter (diff)
downloadbinfilter-cb7236fb473f91aaa6f414de1ba1e10bdfb93878.tar.gz
binfilter-cb7236fb473f91aaa6f414de1ba1e10bdfb93878.zip
MSC can #include <setjmp.h> just fine
...the manual redefinition led to errors now, looks like some header always drags in setjmp.h now (maybe core 5ae27819974e3492b6f4d33fa51ef2a9d77b5ce5 "use intrinsict to inline InterlockCount() on Windows too") Change-Id: I613cd35b1475a3ba1061bd8faafd36ac99a0d94b
-rw-r--r--binfilter/bf_sc/source/core/inc/interpre.hxx16
-rw-r--r--binfilter/inc/bf_sc/subtotal.hxx14
2 files changed, 1 insertions, 29 deletions
diff --git a/binfilter/bf_sc/source/core/inc/interpre.hxx b/binfilter/bf_sc/source/core/inc/interpre.hxx
index 8c70e1bb9..12cbed912 100644
--- a/binfilter/bf_sc/source/core/inc/interpre.hxx
+++ b/binfilter/bf_sc/source/core/inc/interpre.hxx
@@ -49,22 +49,6 @@ class ScFormulaCell;
// Maximum ca. 85 wird bei Invertierung
// von 128 x 128 benoetigt!
-
-#ifndef MSC
- #include <setjmp.h>
-#else
- extern "C"
- {
- #define _JBLEN 9 /* bp, di, si, sp, ret addr, ds */
- typedef int jmp_buf[_JBLEN];
- #define _JMP_BUF_DEFINED
- #define setjmp _setjmp
- int __cdecl _setjmp(jmp_buf);
- void __cdecl longjmp(jmp_buf, int);
- };
-#endif
-
-
struct ScCompare
{
double nVal[2];
diff --git a/binfilter/inc/bf_sc/subtotal.hxx b/binfilter/inc/bf_sc/subtotal.hxx
index 14b8a8c43..c810fa16d 100644
--- a/binfilter/inc/bf_sc/subtotal.hxx
+++ b/binfilter/inc/bf_sc/subtotal.hxx
@@ -24,19 +24,7 @@
#include "global.hxx"
-#ifndef MSC
- #include <setjmp.h>
-#else
- extern "C"
- {
- #define _JBLEN 9 /* bp, di, si, sp, ret addr, ds */
- typedef int jmp_buf[_JBLEN];
- #define _JMP_BUF_DEFINED
- #define setjmp _setjmp
- int __cdecl _setjmp(jmp_buf);
- void __cdecl longjmp(jmp_buf, int);
- };
-#endif
+#include <setjmp.h>
namespace binfilter {