mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.4 KiB

  1. diff -dur SDL-1.2.7/include/SDL_endian.h SDL-1.2.7-p/include/SDL_endian.h
  2. --- SDL-1.2.7/include/SDL_endian.h 2004-02-18 17:21:57.000000000 +0000
  3. +++ SDL-1.2.7-p/include/SDL_endian.h 2004-10-24 19:30:37.893242008 +0000
  4. @@ -57,6 +57,19 @@
  5. /* The macros used to swap values */
  6. /* Try to use superfast macros on systems that support them */
  7. #ifdef linux
  8. +
  9. +#ifdef __CHECKER__
  10. +#define __bitwise __attribute__((bitwise))
  11. +#else
  12. +#define __bitwise
  13. +#endif
  14. +#define __le16 __bitwise __u16
  15. +#define __be16 __bitwise __u16
  16. +#define __le32 __bitwise __u32
  17. +#define __be32 __bitwise __u32
  18. +#define __le64 __bitwise __u64
  19. +#define __be64 __bitwise __u64
  20. +
  21. #include <asm/byteorder.h>
  22. #ifdef __arch__swab16
  23. #define SDL_Swap16 __arch__swab16
  24. diff -dur SDL-1.2.7/src/cdrom/linux/SDL_syscdrom.c SDL-1.2.7-p/src/cdrom/linux/SDL_syscdrom.c
  25. --- SDL-1.2.7/src/cdrom/linux/SDL_syscdrom.c 2004-02-18 17:21:59.000000000 +0000
  26. +++ SDL-1.2.7-p/src/cdrom/linux/SDL_syscdrom.c 2004-10-24 19:33:13.528581840 +0000
  27. @@ -37,6 +37,19 @@
  28. #include <errno.h>
  29. #include <unistd.h>
  30. #ifdef __linux__
  31. +
  32. +#ifdef __CHECKER__
  33. +#define __bitwise __attribute__((bitwise))
  34. +#else
  35. +#define __bitwise
  36. +#endif
  37. +#define __le16 __bitwise __u16
  38. +#define __be16 __bitwise __u16
  39. +#define __le32 __bitwise __u32
  40. +#define __be32 __bitwise __u32
  41. +#define __le64 __bitwise __u64
  42. +#define __be64 __bitwise __u64
  43. +
  44. #include <linux/cdrom.h>
  45. #endif
  46. #ifdef __SVR4