Lines 1-7
Link Here
|
1 |
--- src/Main.cpp.orig Sun Mar 24 17:49:09 2002 |
1 |
--- src/Main.cpp.orig Sun Mar 24 17:49:09 2002 |
2 |
+++ src/Main.cpp Mon Mar 1 19:51:09 2004 |
2 |
+++ src/Main.cpp Mon Mar 1 19:51:09 2004 |
3 |
@@ -1,3 +1,7 @@ |
3 |
@@ -1,3 +1,7 @@ |
4 |
+#if defined(__FreeBSD__) && ( defined(__i386__) || defined(__amd64__) ) |
4 |
+#if defined(__FreeBSD__) && defined(__i386__) |
5 |
+#include <floatingpoint.h> |
5 |
+#include <floatingpoint.h> |
6 |
+#endif |
6 |
+#endif |
7 |
+ |
7 |
+ |
Lines 12-18
Link Here
|
12 |
my_argv = argv; |
12 |
my_argv = argv; |
13 |
if (checkCommandLine()) return 0; |
13 |
if (checkCommandLine()) return 0; |
14 |
|
14 |
|
15 |
+#if defined(__FreeBSD__) && ( defined(__i386__) || defined(__amd64__) ) |
15 |
+#if defined(__FreeBSD__) && defined(__i386__) |
16 |
+ fpsetmask(fpgetmask() & ~(FP_X_DZ|FP_X_INV)); |
16 |
+ fpsetmask(fpgetmask() & ~(FP_X_DZ|FP_X_INV)); |
17 |
+#endif |
17 |
+#endif |
18 |
gApplication = new CApplication(); |
18 |
gApplication = new CApplication(); |
Lines 22-28
Link Here
|
22 |
gApplication->Quit(); |
22 |
gApplication->Quit(); |
23 |
delete gApplication; |
23 |
delete gApplication; |
24 |
|
24 |
|
25 |
+#if defined(__FreeBSD__) && ( defined(__i386__) || defined(__amd64__) ) |
25 |
+#if defined(__FreeBSD__) && defined(__i386__) |
26 |
+ fpresetsticky(FP_X_DZ|FP_X_INV); |
26 |
+ fpresetsticky(FP_X_DZ|FP_X_INV); |
27 |
+ fpsetmask(FP_X_DZ|FP_X_INV); |
27 |
+ fpsetmask(FP_X_DZ|FP_X_INV); |
28 |
+#endif |
28 |
+#endif |