changeset 15899:e2ffe53ac89c

Use proper HAVE_TYPEOF check instead of checking with gcc versions.
author Timo Sirainen <tss@iki.fi>
date Sun, 24 Feb 2013 08:44:27 +0200
parents 357b1f1285ea
children 88c325e81c7c
files configure.ac src/lib/macros.h
diffstat 2 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/configure.ac	Sun Feb 24 08:06:59 2013 +0200
+++ b/configure.ac	Sun Feb 24 08:44:27 2013 +0200
@@ -290,6 +290,7 @@
 AC_PROG_CXX # lucene plugin needs this
 AC_HEADER_STDC
 AC_C_INLINE
+AC_C_TYPEOF
 AC_PROG_LIBTOOL
 AM_ICONV
 
--- a/src/lib/macros.h	Sun Feb 24 08:06:59 2013 +0200
+++ b/src/lib/macros.h	Sun Feb 24 08:44:27 2013 +0200
@@ -151,7 +151,6 @@
 #endif
 
 #if (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 0)) && !defined(__cplusplus)
-#  define HAVE_TYPEOF
 #  define COMPILE_ERROR_IF_TRUE(condition) \
 	(sizeof(char[1 - 2 * !!(condition)]) - 1)
 #  define COMPILE_ERROR_IF_TYPES_NOT_COMPATIBLE(_a, _b) \