Versioning for Thrift, remove thrift/lib/cpp/config.h
[folly.git] / folly / RWSpinLock.h
index c52f7e8b8bfbafd88920936fb5a9720cc8455fee..995c466f61786058bd1c7bf07ac1758a40bb41fc 100644 (file)
@@ -106,7 +106,9 @@ pthread_rwlock_t Read        728698     24us       101ns     7.28ms     194us
 
 */
 
-#if defined(__GNUC__) && !defined(__clang__) && \
+#include <folly/Portability.h>
+
+#if defined(__GNUC__) && \
   (defined(__i386) || FOLLY_X64 || \
    defined(ARCH_K8))
 #define RW_SPINLOCK_USE_X86_INTRINSIC_
@@ -123,7 +125,7 @@ pthread_rwlock_t Read        728698     24us       101ns     7.28ms     194us
 #include <sched.h>
 #include <glog/logging.h>
 
-#include "folly/Likely.h"
+#include <folly/Likely.h>
 
 namespace folly {