Commit f533a9f1 authored by Benoit Perrot's avatar Benoit Perrot
Browse files

Index: ChangeLog

from  Benoît Perrot  <benoit@lrde.epita.fr>
2004-10-31  Benoît Perrot  <benoit@lrde.epita.fr>

	* configure.ac:
	Check <sys/int_limits.h> presence.
	* src/stdint_.h:
	Use <sys/int_limits.h> when it is present to define limit macros.
	A problem occured on our SunOS: <stdint_.h> includes <sys/int_limits.h>
	through several files, leading to a macro definition clash.
parent 643c635a
2004-10-25 Benot Perrot <benoit@lrde.epita.fr>
2004-10-31 Benot Perrot <benoit@lrde.epita.fr>
* configure.ac:
Check <sys/int_limits.h> presence.
* src/stdint_.h:
Use <sys/int_limits.h> when it is present to define limit macros.
A problem occured on our SunOS: <stdint_.h> includes <sys/int_limits.h>
through several files, leading to a macro definition clash.
2004-10-30 Benot Perrot <benoit@lrde.epita.fr>
* configure.ac:
Check isblank presence.
* src/shell/shell.hh, src/shell/shell.cc:
Provide isblank when the platform lack it.
2004-10-25 Benot Perrot <benoit@lrde.epita.fr>
2004-10-30 Benot Perrot <benoit@lrde.epita.fr>
* src/vm/cpu.cc:
Effectively use Cpu::register_type, and not system's register_t.
cpu.cc did not compile on SunOS, where register_t is not defined.
2004-10-25 Benot Perrot <benoit@lrde.epita.fr>
2004-10-30 Benot Perrot <benoit@lrde.epita.fr>
* config/stdint.m4, config/inttypes.m4:
GNUlib's <stdint.h>/<inttypes.h> detection tools.
......
......@@ -43,6 +43,8 @@ AC_CHECK_FUNCS(isblank)
## Development environment -------------
CXXFLAGS="${CXXFLAGS} -ansi -Wall -W -D__STDC_LIMIT_MACROS"
# Check presence of stdint.h
AC_CHECK_HEADERS([sys/int_limits.h])
gl_STDINT_H
## Epilogue ----------------------------
......
......@@ -138,6 +138,10 @@ typedef uint32_t uintmax_t;
#if !defined(__cplusplus) || defined(__STDC_LIMIT_MACROS)
#if defined(HAVE_SYS_INT_LIMITS_H)
# include <sys/int_limits.h>
#else
/* 7.18.2.1. Limits of exact-width integer types */
#define INT8_MIN -128
......@@ -225,7 +229,9 @@ typedef uint32_t uintmax_t;
/* wchar_t limits already defined in <stddef.h>. */
/* wint_t limits already defined in <wchar.h>. */
#endif
#endif /* !HAVE_SYS_INT_LIMITS_H */
#endif
/* 7.18.4. Macros for integer constants */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment