mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
Add an additional patch to make Qt compile on 4.x/Alpha.
Special thanks to Idar Tollefsen <idart@performancedesign.no> for giving me access to his Alpha/4.x machine for testing!
This commit is contained in:
parent
27767bdbe5
commit
befd8a5025
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=109221
14
x11-toolkits/qt33/files/patch-src_tools_qlocale.cpp
Normal file
14
x11-toolkits/qt33/files/patch-src_tools_qlocale.cpp
Normal file
@ -0,0 +1,14 @@
|
||||
--- src/tools/qlocale.cpp.orig2 Sat May 15 14:59:00 2004
|
||||
+++ src/tools/qlocale.cpp Sat May 15 15:10:21 2004
|
||||
@@ -83,6 +83,11 @@
|
||||
static const bool ByteOrder = ((*((unsigned char *) &one) == 0) ? BigEndian : LittleEndian);
|
||||
#endif
|
||||
|
||||
+#if !defined(INFINITY) && defined(Q_OS_FREEBSD)
|
||||
+# define HUGE_VALF (float)HUGE_VAL
|
||||
+# define INFINITY HUGE_VALF
|
||||
+#endif
|
||||
+
|
||||
#if !defined(INFINITY)
|
||||
static const unsigned char be_inf_bytes[] = { 0x7f, 0xf0, 0, 0, 0, 0, 0, 0 };
|
||||
static const unsigned char le_inf_bytes[] = { 0, 0, 0, 0, 0, 0, 0xf0, 0x7f };
|
Loading…
Reference in New Issue
Block a user