From 393bbaf8bc39d34652b383e227264c33585855ab Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Wed, 24 Nov 2021 17:01:02 +0300
Subject: [PATCH] SDL_endian.h: minor cleanup for watcom _inline keyword.
---
include/SDL_endian.h | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/include/SDL_endian.h b/include/SDL_endian.h
index db10aea9..72f257b1 100644
--- a/include/SDL_endian.h
+++ b/include/SDL_endian.h
@@ -55,7 +55,7 @@
#else
#define SDL_BYTEORDER SDL_LIL_ENDIAN
#endif
-#endif /* __linux __ */
+#endif /* __linux__ */
#endif /* !SDL_BYTEORDER */
@@ -112,7 +112,7 @@ static __inline__ Uint16 SDL_Swap16(Uint16 x)
return x;
}
#elif defined(__WATCOMC__) && defined(__386__)
-extern _inline Uint16 SDL_Swap16(Uint16);
+extern __inline Uint16 SDL_Swap16(Uint16);
#pragma aux SDL_Swap16 = \
"xchg al, ah" \
parm [ax] \
@@ -164,7 +164,7 @@ static __inline__ Uint32 SDL_Swap32(Uint32 x)
return x;
}
#elif defined(__WATCOMC__) && defined(__386__)
-extern _inline Uint32 SDL_Swap32(Uint32);
+extern __inline Uint32 SDL_Swap32(Uint32);
#pragma aux SDL_Swap32 = \
"bswap eax" \
parm [eax] \
@@ -202,7 +202,7 @@ static __inline__ Uint64 SDL_Swap64(Uint64 x)
return x;
}
#elif defined(__WATCOMC__) && defined(__386__)
-extern _inline Uint64 SDL_Swap64(Uint64);
+extern __inline Uint64 SDL_Swap64(Uint64);
#pragma aux SDL_Swap64 = \
"bswap eax" \
"bswap edx" \
@@ -224,7 +224,7 @@ static __inline__ Uint64 SDL_Swap64(Uint64 x)
return (x);
}
#endif
-#else
+#else /* SDL_HAS_64BIT_TYPE */
/* This is mainly to keep compilers from complaining in SDL code.
* If there is no real 64-bit datatype, then compilers will complain about
* the fake 64-bit datatype that SDL provides when it compiles user code.