From db32c8394bb6c9a4dc29bcf16842f9caa5abf38f Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Thu, 22 Jan 2004 02:26:08 +0000 Subject: [PATCH] export BoxOnPlaneSide properly in windows so it doesn't cause a segfault --- include/asm_i386.h | 6 ++++++ libs/util/math.S | 1 + 2 files changed, 7 insertions(+) diff --git a/include/asm_i386.h b/include/asm_i386.h index 1ce37890d..a1463edab 100644 --- a/include/asm_i386.h +++ b/include/asm_i386.h @@ -35,6 +35,12 @@ # define C(label) label #endif +#ifdef _WIN32 +# define EXPORT(label) .def C(label); .scl 2; .type 32; .endef +#else +# define EXPORT(label) +#endif + // // !!! note that this file must match the corresponding C structures at all // times !!! diff --git a/libs/util/math.S b/libs/util/math.S index ddfe92ca4..1118da8c9 100644 --- a/libs/util/math.S +++ b/libs/util/math.S @@ -61,6 +61,7 @@ Ljmptab: .long Lcase0, Lcase1, Lcase2, Lcase3 .align 2 .globl C(BoxOnPlaneSide) + EXPORT(BoxOnPlaneSide) #ifdef PIC .type C(BoxOnPlaneSide),@function #endif