Hi there! When specifying -mint8 on the compiler command line the typedef of (u)int64_t leads to an error thus I suggest the following patch:
diff -ruN avr-libc-1.4.5.orig/include/avr/pgmspace.h
avr-libc-1.4.5/include/avr/pgmspace.h
--- avr-libc-1.4.5.orig/include/avr/pgmspace.h 2006-03-02 21:07:09.000000000
+0100
+++ avr-libc-1.4.5/include/avr/pgmspace.h 2007-01-14 01:04:18.000000000
+0100
@@ -210,8 +210,10 @@
typedef uint16_t prog_uint16_t PROGMEM;
typedef int32_t prog_int32_t PROGMEM;
typedef uint32_t prog_uint32_t PROGMEM;
+#if __USING_MINT8 == 0
typedef int64_t prog_int64_t PROGMEM;
typedef uint64_t prog_uint64_t PROGMEM;
+#endif
#endif /* defined(__DOXYGEN__) */
/* Although in C, we can get away with just using __c, it does not work in
diff -ruN avr-libc-1.4.5.orig/include/stdint.h avr-libc-1.4.5/include/stdint.h
--- avr-libc-1.4.5.orig/include/stdint.h 2006-01-22 20:35:30.000000000
+0100
+++ avr-libc-1.4.5/include/stdint.h 2007-01-14 01:03:01.000000000 +0100
@@ -119,8 +119,10 @@
typedef unsigned int uint16_t __attribute__ ((__mode__ (__HI__)));
typedef int int32_t __attribute__ ((__mode__ (__SI__)));
typedef unsigned int uint32_t __attribute__ ((__mode__ (__SI__)));
+#if __USING_MINT8 == 0
typedef int int64_t __attribute__((__mode__(__DI__)));
typedef unsigned int uint64_t __attribute__((__mode__(__DI__)));
+#endif
#endif /* defined(__DOXYGEN__) */
@@ -176,6 +178,7 @@
typedef uint32_t uint_least32_t;
+#if __USING_MINT8 == 0
/** \ingroup avr_stdint
signed int with at least 64 bits. */
@@ -185,6 +188,7 @@
unsigned int with at least 64 bits. */
typedef uint64_t uint_least64_t;
+#endif
/[EMAIL PROTECTED]/
@@ -224,6 +228,7 @@
typedef uint32_t uint_fast32_t;
+#if __USING_MINT8 == 0
/** \ingroup avr_stdint
fastest signed int with at least 64 bits. */
@@ -233,6 +238,7 @@
fastest unsigned int with at least 64 bits. */
typedef uint64_t uint_fast64_t;
+#endif
/[EMAIL PROTECTED]/
@@ -243,6 +249,7 @@
/[EMAIL PROTECTED]/
+#if __USING_MINT8 == 0
/** \ingroup avr_stdint
largest signed int available. */
@@ -252,6 +259,7 @@
largest unsigned int available. */
typedef uint64_t uintmax_t;
+#endif
/[EMAIL PROTECTED]/
Robert
--
Robert Schiele
Dipl.-Wirtsch.informatiker mailto:[EMAIL PROTECTED]
"Quidquid latine dictum sit, altum sonatur."
pgpLJhZmIYOzQ.pgp
Description: PGP signature
_______________________________________________ AVR-libc-dev mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/avr-libc-dev
