# HG changeset patch # User Tomasz Wasilczyk # Date 1380960161 -7200 # Node ID d51759c13fde00648ea7e78ac8af3ed7fd90d04b # Parent 3a12f041d9b188bba4ad78cf6911144b4336e4f5 Clang: replace HAVE_CLANG with __clang__ diff -r 3a12f041d9b1 -r d51759c13fde configure.ac --- 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. diff -r 3a12f041d9b1 -r d51759c13fde libpurple/glibcompat.h --- 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)