diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2010-04-13 04:23:26 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2010-04-13 04:23:26 +0000 |
commit | b3950931a036c5111d13bfe8796401a5bc83b938 (patch) | |
tree | 7777339558dfc532776f8b8d9ae004ed2ee065c6 /cpukit/aclocal | |
parent | 2010-04-13 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-b3950931a036c5111d13bfe8796401a5bc83b938.tar.bz2 |
Add RTEMS_CHECK_GCC_PRINTF_LD_OFF_T, RTEMS_CHECK_GCC_PRINTF_LLD_OFF_T.
Diffstat (limited to 'cpukit/aclocal')
-rw-r--r-- | cpukit/aclocal/gcc-sanity.m4 | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/cpukit/aclocal/gcc-sanity.m4 b/cpukit/aclocal/gcc-sanity.m4 index caf925ad00..0177009e28 100644 --- a/cpukit/aclocal/gcc-sanity.m4 +++ b/cpukit/aclocal/gcc-sanity.m4 @@ -79,10 +79,36 @@ AC_DEFUN([RTEMS_CHECK_GCC_PRINTF_ZD_SSIZE_T],[ ]) ]) +AC_DEFUN([RTEMS_CHECK_GCC_PRINTF_LD_OFF_T],[ + _RTEMS_GCC_WARNING( + [if printf("%ld", off_t) works], + [rtems_cv_PRINTF_LD_OFF_T],[ + #include <sys/types.h> + #include <stdio.h> + ],[ + off_t off = 1; + printf("%ld\n", off); + ]) +]) + +AC_DEFUN([RTEMS_CHECK_GCC_PRINTF_LLD_OFF_T],[ + _RTEMS_GCC_WARNING( + [if printf("%lld", off_t) works], + [rtems_cv_PRINTF_LLD_OFF_T],[ + #include <sys/types.h> + #include <stdio.h> + ],[ + off_t off = 1; + printf("%lld\n", off); + ]) +]) + AC_DEFUN([RTEMS_CHECK_GCC_SANITY],[ RTEMS_CHECK_GCC_PRIxPTR RTEMS_CHECK_GCC_PRIuPTR RTEMS_CHECK_GCC_PRIdPTR RTEMS_CHECK_GCC_PRINTF_ZU_SIZE_T RTEMS_CHECK_GCC_PRINTF_ZD_SSIZE_T +RTEMS_CHECK_GCC_PRINTF_LD_OFF_T +RTEMS_CHECK_GCC_PRINTF_LLD_OFF_T ]) |