physfs_byteorder.c
changeset 194 09c353d30cd4
parent 177 9aaf01f4b8ec
child 201 7ea2ae5d1a6c
--- a/physfs_byteorder.c	Mon Apr 08 13:35:29 2002 +0000
+++ b/physfs_byteorder.c	Fri Apr 12 05:53:12 2002 +0000
@@ -40,22 +40,26 @@
 #define PHYSFS_Swap32  __arch__swab32
 #endif
 #endif /* linux */
-
+
+#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 */