libart-art-config-cross.patch 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. diff -urpN libart_lgpl-2.3.20.orig/art_config.h libart_lgpl-2.3.20/art_config.h
  2. --- libart_lgpl-2.3.20.orig/art_config.h 2008-04-11 10:50:04.000000000 +0200
  3. +++ libart_lgpl-2.3.20/art_config.h 2008-04-11 10:51:32.000000000 +0200
  4. @@ -1,9 +1,15 @@
  5. /* Automatically generated by gen_art_config.c */
  6. +#include <limits.h>
  7. +
  8. #define ART_SIZEOF_CHAR 1
  9. #define ART_SIZEOF_SHORT 2
  10. #define ART_SIZEOF_INT 4
  11. +#if LONG_MAX == 2147483647L
  12. #define ART_SIZEOF_LONG 4
  13. +#else
  14. +#define ART_SIZEOF_LONG 8
  15. +#endif
  16. typedef unsigned char art_u8;
  17. typedef unsigned short art_u16;
  18. diff -urpN libart_lgpl-2.3.20.orig/Makefile.am libart_lgpl-2.3.20/Makefile.am
  19. --- libart_lgpl-2.3.20.orig/Makefile.am 2008-04-11 10:50:04.000000000 +0200
  20. +++ libart_lgpl-2.3.20/Makefile.am 2008-04-11 10:50:31.000000000 +0200
  21. @@ -3,11 +3,6 @@ noinst_PROGRAMS = testart testuta gen_ar
  22. bin_SCRIPTS = \
  23. libart2-config
  24. -BUILT_SOURCES = art_config.h
  25. -
  26. -art_config.h: gen_art_config$(EXEEXT)
  27. - ./gen_art_config > art_config.h
  28. -
  29. EXTRA_DIST = \
  30. libart.def \
  31. libart-config.in \