forked from NetBSD/pkgsrc
-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dosbox-x: Don't assume anything that 80-bit long double.
Add missing SDL_net dependency. bump PKGREVISION.
- Loading branch information
Showing
3 changed files
with
26 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
$NetBSD: distinfo,v 1.15 2020/12/03 14:03:19 nia Exp $ | ||
$NetBSD: distinfo,v 1.16 2021/01/05 11:01:49 nia Exp $ | ||
|
||
SHA1 (dosbox-x-0.83.8.tar.gz) = 25084d9903544ffe954bde2d3ad0d649e8f2eaa0 | ||
RMD160 (dosbox-x-0.83.8.tar.gz) = 067fb76cefde0e30dd049f04c4a2d0baf4fd54bd | ||
SHA512 (dosbox-x-0.83.8.tar.gz) = 61c75460ac71bb41a654354eb4965dc576c29456db3fd5fa41032e4071f90dce68b4f1b88a314dbb56e9c3850bd6975850d6e20efbdcffc2b14701cfd0127ec0 | ||
Size (dosbox-x-0.83.8.tar.gz) = 47950712 bytes | ||
SHA1 (patch-configure.ac) = 915ebe5a4e1f85458e93beeeeb343fcb7ddb89bd | ||
SHA1 (patch-include_dosbox.h) = 69f5fc59e419b46df65991de7469480807ac009d | ||
SHA1 (patch-include_dosbox.h) = 6f7397b4a611511fc1782b1603c9f5cd51b74eb9 | ||
SHA1 (patch-src_dos_dos__programs.cpp) = 99e49762c6812b518917daf21d27d1fb8d2b1681 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,23 @@ | ||
$NetBSD: patch-include_dosbox.h,v 1.1 2020/11/19 17:17:15 nia Exp $ | ||
$NetBSD: patch-include_dosbox.h,v 1.2 2021/01/05 11:01:49 nia Exp $ | ||
|
||
Only attempt to use long double on x86. | ||
GCC having 80-bit long double is far from a safe assumption. | ||
|
||
--- include/dosbox.h.orig 2020-11-01 15:36:10.000000000 +0000 | ||
--- include/dosbox.h.orig 2020-12-01 02:49:53.000000000 +0000 | ||
+++ include/dosbox.h | ||
@@ -72,9 +72,7 @@ | ||
// TODO: The autoconf script should test the size of long double | ||
#if defined(_MSC_VER) | ||
// Microsoft C++ sizeof(long double) == sizeof(double) | ||
@@ -69,16 +69,6 @@ | ||
# define pref_struct_stat struct stat | ||
#endif | ||
|
||
-// TODO: The autoconf script should test the size of long double | ||
-#if defined(_MSC_VER) | ||
-// Microsoft C++ sizeof(long double) == sizeof(double) | ||
-#elif defined(__arm__) | ||
-// ARMv7 (Raspberry Pi) does not have long double, sizeof(long double) == sizeof(double) | ||
-#else | ||
+#elif C_TARGETCPU == X86_64 || C_TARGETCPU == X86 | ||
// GCC, other compilers, have sizeof(long double) == 10 80-bit IEEE | ||
# define HAS_LONG_DOUBLE 1 | ||
#endif | ||
-// GCC, other compilers, have sizeof(long double) == 10 80-bit IEEE | ||
-# define HAS_LONG_DOUBLE 1 | ||
-#endif | ||
- | ||
GCC_ATTRIBUTE(noreturn) void E_Exit(const char * format,...) GCC_ATTRIBUTE( __format__(__printf__, 1, 2)); | ||
|
||
typedef Bits cpu_cycles_count_t; |