You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

fix-ptr-define-issue.patch 810 B

12345678910111213141516171819202122232425262728
  1. diff --git a/Lib/stdint.i b/Lib/stdint.i
  2. index 14fe619..45337c0 100644
  3. --- a/Lib/stdint.i
  4. +++ b/Lib/stdint.i
  5. @@ -86,8 +86,8 @@ typedef unsigned long long int uint_fast64_t;
  6. /* Types for `void *' pointers. */
  7. #if defined(SWIGWORDSIZE64)
  8. -typedef long int intptr_t;
  9. -typedef unsigned long int uintptr_t;
  10. +typedef long long intptr_t;
  11. +typedef unsigned long long uintptr_t;
  12. #else
  13. typedef int intptr_t;
  14. typedef unsigned int uintptr_t;
  15. diff --git a/Lib/swigarch.i b/Lib/swigarch.i
  16. index bf4ee8e..bf6b5c3 100644
  17. --- a/Lib/swigarch.i
  18. +++ b/Lib/swigarch.i
  19. @@ -53,7 +53,7 @@
  20. #ifndef LONG_MAX
  21. #include <limits.h>
  22. #endif
  23. -#if (__WORDSIZE == 32) || (LONG_MAX == INT_MAX)
  24. +#if (__WORDSIZE == 32)
  25. # error "SWIG wrapped code invalid in 32 bit architecture, regenerate code using -DSWIGWORDSIZE32"
  26. #endif
  27. %}