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