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