![]() | ||||||||||
Messages in this thread Patches in this message |
Trivial patch for GCC3. What was going on with 2.96<=__GNUC__<3 ?! Justin diff -Naur linux-2.5.51.org/fs/ntfs/types.h linux-2.5.51.ntfs/fs/ntfs/types.h --- linux-2.5.51.org/fs/ntfs/types.h 2002-12-10 02:17:52.000000000 -0500 +++ linux-2.5.51.ntfs/fs/ntfs/types.h 2002-12-10 02:41:31.000000000 -0500 @@ -23,12 +23,12 @@ #ifndef _LINUX_NTFS_TYPES_H #define _LINUX_NTFS_TYPES_H -#if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 96) -#define SN(X) X /* Struct Name */ -#define SC(P,N) P.N /* ShortCut: Prefix, Name */ -#else +#if __GNUC__ == 2 && __GNUC_MINOR__ >= 96 #define SN(X) #define SC(P,N) N +#else +#define SN(X) X /* Struct Name */ +#define SC(P,N) P.N /* ShortCut: Prefix, Name */ #endif /* 2-byte Unicode character type. */ diff -Naur linux-2.5.51.org/fs/ntfs/types.h linux-2.5.51.ntfs/fs/ntfs/types.h --- linux-2.5.51.org/fs/ntfs/types.h 2002-12-10 02:17:52.000000000 -0500 +++ linux-2.5.51.ntfs/fs/ntfs/types.h 2002-12-10 02:41:31.000000000 -0500 @@ -23,12 +23,12 @@ #ifndef _LINUX_NTFS_TYPES_H #define _LINUX_NTFS_TYPES_H -#if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 96) -#define SN(X) X /* Struct Name */ -#define SC(P,N) P.N /* ShortCut: Prefix, Name */ -#else +#if __GNUC__ == 2 && __GNUC_MINOR__ >= 96 #define SN(X) #define SC(P,N) N +#else +#define SN(X) X /* Struct Name */ +#define SC(P,N) P.N /* ShortCut: Prefix, Name */ #endif /* 2-byte Unicode character type. */ | |||||||||
| Last update: 2005-03-22 12:31 [W:0.078 / U:0.340 seconds] ©2003-2008 Jasper Spaans | ||||||||||