diff options
author | Guido Günther <agx@sigxcpu.org> | 2012-04-03 20:08:57 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2012-04-03 20:08:57 +0200 |
commit | 34aa61bdb7ec355095df144171dd17c19a8a2d84 (patch) | |
tree | 5714eded536c6059fee5aa37eb1989c97c9edb04 /gnulib | |
parent | 049b63bda2c0ad4fa76e4adb17b6b1e331daff7a (diff) |
New upstream version 0.9.11
Diffstat (limited to 'gnulib')
-rw-r--r-- | gnulib/m4/ssize_t.m4 | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/gnulib/m4/ssize_t.m4 b/gnulib/m4/ssize_t.m4 index 209d64c82..5ea72a18a 100644 --- a/gnulib/m4/ssize_t.m4 +++ b/gnulib/m4/ssize_t.m4 @@ -1,4 +1,4 @@ -# ssize_t.m4 serial 5 (gettext-0.18.2) +# ssize_t.m4 serial 6 (gettext-0.18.2) dnl Copyright (C) 2001-2003, 2006, 2010-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -17,7 +17,21 @@ AC_DEFUN([gt_TYPE_SSIZE_T], return !x;]])], [gt_cv_ssize_t=yes], [gt_cv_ssize_t=no])]) if test $gt_cv_ssize_t = no; then - AC_DEFINE([ssize_t], [int], - [Define as a signed type of the same size as size_t.]) + AC_CACHE_CHECK([for rank of size_t], [gt_cv_size_t_rank], + [AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM( + [[#include <sys/types.h> + #ifdef __cplusplus + extern "C" { + #endif + int foo(unsigned long bar); + int foo(size_t bar); + #ifdef __cplusplus + } + #endif + ]])], + [gt_cv_size_t_rank=long], [gt_cv_size_t_rank=int])]) + AC_DEFINE_UNQUOTED([ssize_t], [$gt_cv_size_t_rank], + [Define as a signed type of the same size and rank as size_t.]) fi ]) |