diff options
author | lofi <lofi@FreeBSD.org> | 2004-05-15 23:49:16 +0800 |
---|---|---|
committer | lofi <lofi@FreeBSD.org> | 2004-05-15 23:49:16 +0800 |
commit | 21debd689ae942f951d039a4e0dd16a0b3bc1598 (patch) | |
tree | 598599d57706bd6a9de53fcc5e57251f7c73dc14 /x11-toolkits | |
parent | 45715039abf6629d281558697326e6ad64bb5288 (diff) | |
download | freebsd-ports-gnome-21debd689ae942f951d039a4e0dd16a0b3bc1598.tar.gz freebsd-ports-gnome-21debd689ae942f951d039a4e0dd16a0b3bc1598.tar.zst freebsd-ports-gnome-21debd689ae942f951d039a4e0dd16a0b3bc1598.zip |
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!
Diffstat (limited to 'x11-toolkits')
-rw-r--r-- | x11-toolkits/qt33/files/patch-src_tools_qlocale.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/x11-toolkits/qt33/files/patch-src_tools_qlocale.cpp b/x11-toolkits/qt33/files/patch-src_tools_qlocale.cpp new file mode 100644 index 000000000000..1dac9dc1c3d5 --- /dev/null +++ b/x11-toolkits/qt33/files/patch-src_tools_qlocale.cpp @@ -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 }; |