X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Fmode_t.m4;h=f9cf704723a2331e160f5cb74b6d25dfb9a72c3f;hb=c604bb86746f7f16471a598df94845e42d0e1b5f;hp=a4dd694d0b0fa67ab7a80f84c617c59bccc6785b;hpb=2514e7d5af226b15be3f737286b3ff8c0c91d761;p=gnulib.git diff --git a/m4/mode_t.m4 b/m4/mode_t.m4 index a4dd694d0..f9cf70472 100644 --- a/m4/mode_t.m4 +++ b/m4/mode_t.m4 @@ -1,5 +1,5 @@ -# mode_t.m4 serial 1 -dnl Copyright (C) 2009 Free Software Foundation, Inc. +# mode_t.m4 serial 2 +dnl Copyright (C) 2009-2011 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -16,8 +16,8 @@ AC_DEFUN([gl_PROMOTED_TYPE_MODE_T], dnl Assume mode_t promotes to 'int' if and only if it is smaller than 'int', dnl and to itself otherwise. This assumption is not guaranteed by the ISO C dnl standard, but we don't know of any real-world counterexamples. - AC_TRY_COMPILE([#include ], - [typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1];], + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]], + [[typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1];]])], [gl_cv_promoted_mode_t='int'], [gl_cv_promoted_mode_t='mode_t']) ])