aboutsummaryrefslogtreecommitdiffstats
path: root/wsutil
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2013-03-14 08:42:51 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2013-03-14 08:42:51 +0000
commitca5516c665c79d2c05ad596bd30a22e0fd7352d0 (patch)
tree77a92d73f044e8bfe0fc3b03e835bd17ede7f195 /wsutil
parentd9aff2d872585989fff257eb1baae4d1df7cc67d (diff)
Use pragma diagnostic also when compiling with clang.
svn path=/trunk/; revision=48295
Diffstat (limited to 'wsutil')
-rw-r--r--wsutil/wsgcrypt.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/wsutil/wsgcrypt.h b/wsutil/wsgcrypt.h
index 714ad78962..d97d8e20ab 100644
--- a/wsutil/wsgcrypt.h
+++ b/wsutil/wsgcrypt.h
@@ -31,6 +31,15 @@
#ifdef HAVE_LIBGCRYPT
+#ifdef __CLANG__
+
+#pragma clang diagnostic push
+#pragma clang diagnostic warning "-Wdeprecated-declarations"
+#include <gcrypt.h>
+#pragma clang diagnostic pop
+
+#else
+
#if defined(__GNUC__) && defined(__GNUC_MINOR__)
#define _GCC_VERSION (__GNUC__*100 + __GNUC_MINOR__*10)
#else
@@ -64,6 +73,8 @@
#endif /* _GCC_VERSION */
+#endif /* __CLANG__ */
+
#endif /* HAVE_LIBGRYPT */
#endif /* __WSGCRYPT_H__ */