summaryrefslogtreecommitdiff
path: root/net/DarwinStreamingServer/files/patch-CommonUtilitiesLib::OSHeaders.h
diff options
context:
space:
mode:
authorNorikatsu Shigemura <nork@FreeBSD.org>2006-08-13 00:22:50 +0000
committerNorikatsu Shigemura <nork@FreeBSD.org>2006-08-13 00:22:50 +0000
commit78825e7169ab28ed9f039bfbb2409e56ae2e9bc0 (patch)
tree62e881f7aba9577eea07c0a37047e80799e7e580 /net/DarwinStreamingServer/files/patch-CommonUtilitiesLib::OSHeaders.h
parent- Respect DESTDIR (diff)
Update to 5.5.3
o rcNGfy o Compile on amd64 [1] NOTE: DSS will support on amd64, because there are many fix which I heard:-) in cvs repository. In this time, however, Apple doesn't release DSS supported on amd64:-(. Submitted by: Javier Martin Rueda <jmrueda@diatel.upm.es> [1]
Notes
Notes: svn path=/head/; revision=170446
Diffstat (limited to 'net/DarwinStreamingServer/files/patch-CommonUtilitiesLib::OSHeaders.h')
-rw-r--r--net/DarwinStreamingServer/files/patch-CommonUtilitiesLib::OSHeaders.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/net/DarwinStreamingServer/files/patch-CommonUtilitiesLib::OSHeaders.h b/net/DarwinStreamingServer/files/patch-CommonUtilitiesLib::OSHeaders.h
new file mode 100644
index 000000000000..d26e6f2d9fa5
--- /dev/null
+++ b/net/DarwinStreamingServer/files/patch-CommonUtilitiesLib::OSHeaders.h
@@ -0,0 +1,49 @@
+--- CommonUtilitiesLib/OSHeaders.h.orig Wed May 18 17:01:14 2005
++++ CommonUtilitiesLib/OSHeaders.h Sun Aug 13 00:34:52 2006
+@@ -27,11 +27,20 @@
+ #define OSHeaders_H
+ #include <limits.h>
+
++#ifdef __amd64__
++#define CPU_64BIT
++#endif
++
+ #define kSInt16_Max USHRT_MAX
+ #define kUInt16_Max USHRT_MAX
+
++#ifdef CPU_64BIT
++#define kSInt32_Max INT_MAX
++#define kUInt32_Max UINT_MAX
++#else
+ #define kSInt32_Max LONG_MAX
+ #define kUInt32_Max ULONG_MAX
++#endif
+
+ #define kSInt64_Max LONG_LONG_MAX
+ #define kUInt64_Max ULONG_LONG_MAX
+@@ -72,8 +81,13 @@
+ typedef signed char SInt8;
+ typedef unsigned short UInt16;
+ typedef signed short SInt16;
++#ifdef CPU_64BIT
++ typedef unsigned int UInt32;
++ typedef signed int SInt32;
++#else
+ typedef unsigned long UInt32;
+ typedef signed long SInt32;
++#endif
+ typedef signed long long SInt64;
+ typedef unsigned long long UInt64;
+ typedef float Float32;
+@@ -81,7 +95,11 @@
+ typedef UInt16 Bool16;
+ typedef UInt8 Bool8;
+
++#ifdef CPU_64BIT
++ typedef unsigned int FourCharCode;
++#else
+ typedef unsigned long FourCharCode;
++#endif
+ typedef FourCharCode OSType;
+
+ #ifdef FOUR_CHARS_TO_INT