File: 99_types.patch

package info (click to toggle)
hfsplus 1.0.4-21
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,948 kB
  • sloc: ansic: 7,726; makefile: 54
file content (34 lines) | stat: -rw-r--r-- 1,054 bytes parent folder | download | duplicates (2)
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
From: Aurélien GÉRÔME <ag@roxor.cx>
Description: Use types in asm/types.h instead of compiler defaults.

diff -x debian -ruN old/hfsplus-1.0.4/libhfsp/src/apple.h hfsplus-1.0.4/libhfsp/src/apple.h
--- old/hfsplus-1.0.4/libhfsp/src/apple.h	2002-03-10 20:58:09.000000000 +0000
+++ hfsplus-1.0.4/libhfsp/src/apple.h	2006-09-13 20:52:15.000000000 +0000
@@ -27,16 +27,17 @@
 
 #define APPLE_H
 
-typedef signed char	    Char;
-typedef unsigned char	    UChar;
-typedef signed char	    SInt8;
-typedef unsigned char	    UInt8;
-typedef signed short	    SInt16;
-typedef unsigned short	    UInt16;
-typedef signed long	    SInt32;
-typedef unsigned long	    UInt32;
-typedef unsigned long	    OSType;
-typedef unsigned long long  UInt64;
+#include <asm/types.h>
+typedef __s8    Char;
+typedef __u8    UChar;
+typedef __s8    SInt8;
+typedef __u8    UInt8;
+typedef __s16   SInt16;
+typedef __u16   UInt16;
+typedef __s32   SInt32;
+typedef __u32   UInt32;
+typedef __u32   OSType;
+typedef __u64   UInt64;
 
 #define PARTITION_SIG	    0x504d   /* 'PM' */