Sat, 05 Oct 2013 10:02:41 +0200
Clang: replace HAVE_CLANG with __clang__
| configure.ac | file | annotate | diff | comparison | revisions | |
| libpurple/glibcompat.h | file | annotate | diff | comparison | revisions |
--- a/configure.ac Fri Oct 04 23:50:32 2013 +0200 +++ b/configure.ac Sat Oct 05 10:02:41 2013 +0200 @@ -1497,7 +1497,6 @@ ])], have_clang=yes, have_clang=no) if test "x$have_clang" = "xyes"; then - AC_DEFINE([HAVE_CLANG], [1], [Define to 1 if you compile with clang.]) GLIB_LIBS=`echo $GLIB_LIBS | $sedpath 's/-pthread/-lpthread/'` dnl Enable address sanitizer.
--- a/libpurple/glibcompat.h Fri Oct 04 23:50:32 2013 +0200 +++ b/libpurple/glibcompat.h Sat Oct 05 10:02:41 2013 +0200 @@ -25,7 +25,7 @@ * Also, any public API should not depend on this file. */ -#ifdef HAVE_CLANG +#ifdef __clang__ #undef G_GNUC_BEGIN_IGNORE_DEPRECATIONS #define G_GNUC_BEGIN_IGNORE_DEPRECATIONS \ @@ -36,7 +36,8 @@ #define G_GNUC_END_IGNORE_DEPRECATIONS \ _Pragma ("clang diagnostic pop") -#endif /* HAVE_CLANG */ +#endif /* __clang__ */ + #if !GLIB_CHECK_VERSION(2, 32, 0)