SOURCES: leptonlib-endiantest.patch (NEW) - use 32bit integer always
tommat
tommat at pld-linux.org
Wed Feb 20 21:57:26 CET 2008
Author: tommat Date: Wed Feb 20 20:57:26 2008 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- use 32bit integer always
---- Files affected:
SOURCES:
leptonlib-endiantest.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/leptonlib-endiantest.patch
diff -u /dev/null SOURCES/leptonlib-endiantest.patch:1.1
--- /dev/null Wed Feb 20 21:57:26 2008
+++ SOURCES/leptonlib-endiantest.patch Wed Feb 20 21:57:21 2008
@@ -0,0 +1,16 @@
+--- leptonlib-1.52/src/endiantest.c.orig 2008-02-20 20:09:43.000000000 +0000
++++ leptonlib-1.52/src/endiantest.c 2008-02-20 20:13:09.000000000 +0000
+@@ -1,11 +1,12 @@
+ /* endiantest.c */
+
+ #include <stdio.h>
++#include <sys/types.h>
+
+ int main()
+ {
+ /* fprintf(stderr, "doing the test\n"); */
+- long v = 0x04030201;
++ u_int32_t v = 0x04030201;
+ if (*((unsigned char *)(&v)) == 0x04)
+ printf("L_BIG_ENDIAN\n");
+ else
================================================================
More information about the pld-cvs-commit
mailing list