/pidgin/main: d51759c13fde: Clang: replace HAVE_CLANG with __cla...

Tomasz Wasilczyk twasilczyk at pidgin.im
Sat Oct 5 04:02:48 EDT 2013


Changeset: d51759c13fde00648ea7e78ac8af3ed7fd90d04b
Author:	 Tomasz Wasilczyk <twasilczyk at pidgin.im>
Date:	 2013-10-05 10:02 +0200
Branch:	 default
URL: https://hg.pidgin.im/pidgin/main/rev/d51759c13fde

Description:

Clang: replace HAVE_CLANG with __clang__

diffstat:

 configure.ac           |  1 -
 libpurple/glibcompat.h |  5 +++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diffs (33 lines):

diff --git a/configure.ac b/configure.ac
--- a/configure.ac
+++ b/configure.ac
@@ -1497,7 +1497,6 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [
 ])], 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 --git a/libpurple/glibcompat.h b/libpurple/glibcompat.h
--- a/libpurple/glibcompat.h
+++ b/libpurple/glibcompat.h
@@ -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)
 



More information about the Commits mailing list