summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2004-11-07 06:49:39 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2004-11-07 06:49:39 +0000
commit47148e4f854e050217dcb14b6c9abd9374b1802a (patch)
treef5f197d8e4bdbb47828d04924f7deeb2fbbdaafd /cpukit/libcsupport
parent2004-11-05 Ralf Corsepius <ralf_corsepius@rtems.org> (diff)
downloadrtems-47148e4f854e050217dcb14b6c9abd9374b1802a.tar.bz2
2004-11-07 Ralf Corsepius <ralf.corsepiu@rtems.org>
* libcsupport/include/sys/_stdint.h: Special-case int64_t (GCC has __LONG_LONG_MAX__, while POSIX mandates LLONG_MAX. This break __EXP(LONG_LONG_MAX)).
Diffstat (limited to 'cpukit/libcsupport')
-rw-r--r--cpukit/libcsupport/include/sys/_stdint.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/cpukit/libcsupport/include/sys/_stdint.h b/cpukit/libcsupport/include/sys/_stdint.h
index 901e135989..369b1ec1f7 100644
--- a/cpukit/libcsupport/include/sys/_stdint.h
+++ b/cpukit/libcsupport/include/sys/_stdint.h
@@ -109,7 +109,12 @@ typedef signed long int64_t;
typedef unsigned long uint64_t;
#define __int64_t_defined 1
#define __rtems_long64 1
-#elif __EXP(LONG_LONG_MAX) > 0x7fffffff
+#elif defined(__LONG_LONG_MAX__) && (__LONG_LONG_MAX__ > 0x7fffffff)
+typedef signed long long int64_t;
+typedef unsigned long long uint64_t;
+#define __int64_t_defined 1
+#define __rtems_longlong64 1
+#elif defined(LLONG_MAX) && (LLONG_MAX > 0x7fffffff)
typedef signed long long int64_t;
typedef unsigned long long uint64_t;
#define __int64_t_defined 1