2010-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>

* stringto01/init.c: Redefine LONG_LONG_MAX and LONG_LONG_MIN
	for c99.
This commit is contained in:
Ralf Corsepius
2011-02-11 08:21:04 +00:00
parent 0bd7a4896d
commit 2d3366223a
2 changed files with 14 additions and 0 deletions

View File

@@ -1,3 +1,8 @@
2010-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* stringto01/init.c: Redefine LONG_LONG_MAX and LONG_LONG_MIN
for c99.
2011-02-02 Joel Sherrill <joel.sherrilL@OARcorp.com>
* cpuuse/tswitch.c: Shrink memory requirements.

View File

@@ -19,6 +19,15 @@
#define __STRING(x) #x /* stringify without expanding x */
#define __XSTRING(x) __STRING(x) /* expand x, then stringify */
/* c99 has LLONG_MAX instead of LONG_LONG_MAX */
#ifndef LONG_LONG_MAX
#define LONG_LONG_MAX LLONG_MAX
#endif
/* c99 has LLONG_MIN instead of LONG_LONG_MIN */
#ifndef LONG_LONG_MIN
#define LONG_LONG_MIN LLONG_MIN
#endif
/* Test pointer conversions */
#define TEST_STRING_TO_TYPE void *
#define TEST_STRING_TO_NAME test_rtems_string_to_pointer