blob: 31d9b2c6b3b6dcc827637a471ea8d116e8290562 (
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
32
33
34
35
36
37
38
39
40
41
42
43
44
|
--- bootloader/src/main.c.orig 2019-07-09 19:14:04 UTC
+++ bootloader/src/main.c
@@ -16,6 +16,11 @@
* main: For OS X and Linux
*/
+#ifdef __FreeBSD__
+ #include <sys/cdefs.h>
+ #include <floatingpoint.h>
+ #include <ieeefp.h>
+#endif
#ifdef _WIN32
#include <windows.h>
#include <wchar.h>
@@ -33,9 +38,6 @@
#include "pyi_global.h"
#include "pyi_win32_utils.h"
-#ifdef __FreeBSD__
- #include <floatingpoint.h>
-#endif
#if defined(_WIN32)
#define MS_WINDOWS
@@ -87,19 +89,12 @@ main(int argc, char **argv)
{
int res;
- #ifdef __FreeBSD__
- fp_except_t m;
- #endif
/* 754 requires that FP exceptions run in "no stop" mode by default,
* and until C vendors implement C99's ways to control FP exceptions,
* Python requires non-stop mode. Alas, some platforms enable FP
* exceptions by default. Here we disable them.
*/
- #ifdef __FreeBSD__
- m = fpgetmask();
- fpsetmask(m & ~FP_X_OFL);
- #endif
res = pyi_main(argc, argv);
return res;
|