diff options
Diffstat (limited to 'build')
-rw-r--r-- | build/c_std.m4 | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/build/c_std.m4 b/build/c_std.m4 index 606aef6e..f9850238 100644 --- a/build/c_std.m4 +++ b/build/c_std.m4 @@ -15,23 +15,23 @@ ## You should have received a copy of the GNU Lesser General Public License ## along with this library. If not, see <http://www.gnu.org/licenses/>. -#serial 20110910 +#serial 20120912 ## GLIBMM_C_STD_TIME_T_IS_NOT_INT32 ## -## Test whether time_t and gint32 are typedefs of the same builting type. If -## they aren't then they can be used for method overload. In that case +## Test whether std::time_t and gint32 are typedefs of the same builting type. +## If they aren't then they can be used for method overload. In that case ## GLIBMM_HAVE_C_STD_TIME_T_IS_NOT_INT32 is defined to 1. ## AC_DEFUN([GLIBMM_C_STD_TIME_T_IS_NOT_INT32], [ AC_CACHE_CHECK( - [whether time_t is not equivalent to gint32, meaning that it can be used for a method overload], + [whether std::time_t is not equivalent to gint32, meaning that it can be used for a method overload], [glibmm_cv_c_std_time_t_is_not_int32], [ AC_COMPILE_IFELSE([AC_LANG_PROGRAM( [[ - #include <time.h> + #include <ctime> ]],[[ typedef signed int gint32; class Test @@ -39,7 +39,7 @@ AC_DEFUN([GLIBMM_C_STD_TIME_T_IS_NOT_INT32], void something(gint32 val) {} - void something(time_t val) + void something(std::time_t val) {} }; ]])], @@ -50,5 +50,5 @@ AC_DEFUN([GLIBMM_C_STD_TIME_T_IS_NOT_INT32], AS_VAR_IF([glibmm_cv_c_std_time_t_is_not_int32], ['yes'], [AC_DEFINE([GLIBMM_HAVE_C_STD_TIME_T_IS_NOT_INT32], [1], - [Defined when time_t is not equivalent to gint32, meaning that it can be used for a method overload])])[]dnl + [Defined when std::time_t is not equivalent to gint32, meaning that it can be used for a method overload])])[]dnl ]) |