From b1ee823a8cfa24a2a13bdc919f28430a6ccefd30 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Tue, 16 Apr 2002 04:19:20 +0000 Subject: [PATCH] Patched to stop -ansi bitching. --- physfs_byteorder.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/physfs_byteorder.c b/physfs_byteorder.c index 45ba55c5..7051098c 100644 --- a/physfs_byteorder.c +++ b/physfs_byteorder.c @@ -40,26 +40,26 @@ #define PHYSFS_Swap32 __arch__swab32 #endif #endif /* linux */ - -#if (defined _MSC_VER) -#define inline __inline -#endif - + +#if (defined _MSC_VER) +#define __inline__ __inline +#endif + #ifndef PHYSFS_Swap16 -static inline PHYSFS_uint16 PHYSFS_Swap16(PHYSFS_uint16 D) +static __inline__ PHYSFS_uint16 PHYSFS_Swap16(PHYSFS_uint16 D) { return((D<<8)|(D>>8)); } #endif #ifndef PHYSFS_Swap32 -static inline PHYSFS_uint32 PHYSFS_Swap32(PHYSFS_uint32 D) +static __inline__ PHYSFS_uint32 PHYSFS_Swap32(PHYSFS_uint32 D) { return((D<<24)|((D<<8)&0x00FF0000)|((D>>8)&0x0000FF00)|(D>>24)); } #endif #ifndef PHYSFS_NO_64BIT_SUPPORT #ifndef PHYSFS_Swap64 -static inline PHYSFS_uint64 PHYSFS_Swap64(PHYSFS_uint64 val) { +static __inline__ PHYSFS_uint64 PHYSFS_Swap64(PHYSFS_uint64 val) { PHYSFS_uint32 hi, lo; /* Separate into high and low 32-bit values and swap them */