Lines 1-27
Link Here
|
1 |
--- src/Main.cpp.orig Mon Jun 5 14:34:38 2000 |
1 |
--- src/Main.cpp.orig Sun Mar 24 17:49:09 2002 |
2 |
+++ src/Main.cpp Mon Jun 5 14:34:30 2000 |
2 |
+++ src/Main.cpp Mon Mar 1 19:51:09 2004 |
3 |
@@ -1,3 +1,5 @@ |
3 |
@@ -1,3 +1,7 @@ |
|
|
4 |
+#if defined(__FreeBSD__) && ( defined(__i386__) || defined(__amd64__) ) |
4 |
+#include <floatingpoint.h> |
5 |
+#include <floatingpoint.h> |
|
|
6 |
+#endif |
5 |
+ |
7 |
+ |
6 |
#include "System.hpp" |
8 |
#include "System.hpp" |
7 |
#include "Appl.hpp" |
9 |
#include "Appl.hpp" |
8 |
#include "Clut.hpp" |
10 |
#include "Clut.hpp" |
9 |
@@ -74,7 +76,7 @@ |
11 |
@@ -75,6 +79,9 @@ |
10 |
my_argc = argc; |
|
|
11 |
my_argv = argv; |
12 |
my_argv = argv; |
12 |
if (checkCommandLine()) return 0; |
13 |
if (checkCommandLine()) return 0; |
13 |
- |
14 |
|
|
|
15 |
+#if defined(__FreeBSD__) && ( defined(__i386__) || defined(__amd64__) ) |
14 |
+ fpsetmask(fpgetmask() & ~(FP_X_DZ|FP_X_INV)); |
16 |
+ fpsetmask(fpgetmask() & ~(FP_X_DZ|FP_X_INV)); |
|
|
17 |
+#endif |
15 |
gApplication = new CApplication(); |
18 |
gApplication = new CApplication(); |
16 |
gApplication->InitGraphics(); |
19 |
gApplication->InitGraphics(); |
17 |
gApplication->LoadData(); |
20 |
gApplication->LoadData(); |
18 |
@@ -82,6 +84,9 @@ |
21 |
@@ -83,5 +90,10 @@ |
19 |
gApplication->UnloadData(); |
|
|
20 |
gApplication->Quit(); |
22 |
gApplication->Quit(); |
21 |
delete gApplication; |
23 |
delete gApplication; |
22 |
+ |
24 |
|
|
|
25 |
+#if defined(__FreeBSD__) && ( defined(__i386__) || defined(__amd64__) ) |
23 |
+ fpresetsticky(FP_X_DZ|FP_X_INV); |
26 |
+ fpresetsticky(FP_X_DZ|FP_X_INV); |
24 |
+ fpsetmask(FP_X_DZ|FP_X_INV); |
27 |
+ fpsetmask(FP_X_DZ|FP_X_INV); |
25 |
|
28 |
+#endif |
|
|
29 |
+ |
26 |
return 0; |
30 |
return 0; |
27 |
} |
31 |
} |