[Liboil] 64 bit gcc compile patch

Andy Wingo wingo at pobox.com
Tue Oct 11 05:23:30 PDT 2005


Dunno if this is how you want to do it, but I didn't feel like
infrastructure today...
-- 
Andy Wingo
http://wingolog.org/
-------------- next part --------------
? INSTALL
? compile
? config.guess
? config.sub
? depcomp
? install-sh
? ltmain.sh
? missing
? doc/Makefile
? doc/Makefile.in
? doc/html
? doc/html-build.stamp
? doc/html.stamp
? doc/liboil-decl-list.txt
? doc/liboil-decl.txt
? doc/liboil-undocumented.txt
? doc/liboil-unused.txt
? doc/liboil.args
? doc/liboil.hierarchy
? doc/liboil.interfaces
? doc/liboil.prerequisites
? doc/liboil.signals
? doc/scan-build.stamp
? doc/sgml-build.stamp
? doc/sgml.stamp
? doc/tmpl-build.stamp
? doc/tmpl.stamp
? doc/tmpl/liboilmacros.sgml
? doc/xml/liboil-doc.bottom
? doc/xml/liboil-doc.top
? doc/xml/liboil.xml
? doc/xml/liboilcpu.xml
? doc/xml/liboildebug.xml
? doc/xml/liboilfuncs-conv.xml
? doc/xml/liboilfuncs-copy.xml
? doc/xml/liboilfuncs-dct.xml
? doc/xml/liboilfuncs-doc.xml
? doc/xml/liboilfuncs-math.xml
? doc/xml/liboilfuncs-math8x8.xml
? doc/xml/liboilfuncs-pixel.xml
? doc/xml/liboilfunction.xml
? doc/xml/liboilmacros.xml
? doc/xml/liboilparameter.xml
? doc/xml/liboilprofile.xml
? doc/xml/liboilprototype.xml
? doc/xml/liboilrandom.xml
? doc/xml/liboiltest.xml
? doc/xml/liboiltypes.xml
? doc/xml/object_index.sgml
? doc/xml/tree_index.sgml
? examples/memcpy-speed
? examples/oil-test
? examples/report
? examples/huffman/.deps
? examples/huffman/.libs
? examples/huffman/Makefile
? examples/huffman/Makefile.in
? examples/huffman/huffman_test
? examples/jpeg/.deps
? examples/jpeg/.libs
? examples/jpeg/Makefile
? examples/jpeg/Makefile.in
? examples/jpeg/jpeg_rgb_test
? examples/jpeg/jpeg_test
? examples/jpeg/libjpeg.la
? examples/jpeg/libjpeg_la-huffman.lo
? examples/jpeg/libjpeg_la-jpeg.lo
? examples/jpeg/libjpeg_la-jpeg_rgb_decoder.lo
? examples/taylor/.deps
? examples/taylor/.libs
? examples/taylor/Makefile
? examples/taylor/Makefile.in
? examples/taylor/example1
? examples/uberopt/.deps
? examples/uberopt/.libs
? examples/uberopt/Makefile
? examples/uberopt/Makefile.in
? examples/uberopt/uberopt
? examples/work/.deps
? examples/work/.libs
? examples/work/Makefile
? examples/work/Makefile.in
? examples/work/work
? liboil/build_class_decls
? liboil/build_marshal
? liboil/build_prototypes_doc
? liboil/liboilfuncs-doc.h
? liboil/i386/empty.c
? liboil/powerpc/.deps
? liboil/powerpc/.libs
? liboil/powerpc/Makefile
? liboil/powerpc/Makefile.in
? liboil/powerpc/libpowerpc.la
? testsuite/copy
? testsuite/dso_check
? testsuite/proto4
? testsuite/stride
? testsuite/trans
? testsuite/instruction/.deps
? testsuite/instruction/.libs
? testsuite/instruction/Makefile
? testsuite/instruction/Makefile.in
? testsuite/instruction/list-impls
Index: examples/oil-test.c
===================================================================
RCS file: /cvs/liboil/liboil/examples/oil-test.c,v
retrieving revision 1.4
diff -u -r1.4 oil-test.c
--- examples/oil-test.c	15 Sep 2005 07:05:10 -0000	1.4
+++ examples/oil-test.c	11 Oct 2005 12:23:30 -0000
@@ -29,6 +29,15 @@
 #include "config.h"
 #endif
 
+#ifdef HAVE_INTTYPES_H
+#include <inttypes.h>
+#define INT64_FORMAT PRId64
+#define UINT64_FORMAT PRIu64
+#else
+#define INT64_FORMAT "lld"
+#define UINT64_FORMAT "llu"
+#endif
+
 #include <liboil/liboil.h>
 #include <liboil/liboilfunction.h>
 #include <liboil/liboiltest.h>
@@ -107,10 +116,10 @@
       //DUMP(uint32_t, "%08x");
       break;
     case OIL_TYPE_s64p:
-      DUMP(int64_t, "%lld");
+      DUMP(int64_t, "%" INT64_FORMAT);
       break;
     case OIL_TYPE_u64p:
-      DUMP(uint64_t, "%llu");
+      DUMP(uint64_t, "%" UINT64_FORMAT);
       break;
     case OIL_TYPE_f32p:
       DUMP(float, "%g");


More information about the Liboil mailing list