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.

23 lines
708 B

  1. diff -dur prboom-2.3.1/src/m_swap.h prboom-2.3.1-p/src/m_swap.h
  2. --- prboom-2.3.1/src/m_swap.h 2004-09-15 21:09:24.000000000 +0200
  3. +++ prboom-2.3.1-p/src/m_swap.h 2004-11-06 10:37:14.347851896 +0100
  4. @@ -49,6 +49,19 @@
  5. /* Try to use superfast macros on systems that support them */
  6. #ifdef HAVE_ASM_BYTEORDER_H
  7. +
  8. +#ifdef __CHECKER__
  9. +#define __bitwise __attribute__((bitwise))
  10. +#else
  11. +#define __bitwise
  12. +#endif
  13. +#define __le16 __bitwise __u16
  14. +#define __be16 __bitwise __u16
  15. +#define __le32 __bitwise __u32
  16. +#define __be32 __bitwise __u32
  17. +#define __le64 __bitwise __u64
  18. +#define __be64 __bitwise __u64
  19. +
  20. #include <asm/byteorder.h>
  21. #ifdef __arch__swab16
  22. #define doom_swap_s (signed short)__arch__swab16