Fix HHWheelTimer compilation bug in libc++ build
[folly.git] / folly / PackedSyncPtr.h
index 40d92106e200c0b8e7ffe7a64c94c9cff60ad596..f7b753b8f062b30304d8286c510d851a53417819 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2013 Facebook, Inc.
+ * Copyright 2014 Facebook, Inc.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -17,7 +17,9 @@
 #ifndef FOLLY_PACKEDSYNCPTR_H_
 #define FOLLY_PACKEDSYNCPTR_H_
 
-#ifndef __x86_64__
+#include <folly/Portability.h>
+
+#if !FOLLY_X64
 # error "PackedSyncPtr is x64-specific code."
 #endif
 
@@ -51,7 +53,7 @@
  * @author Jordan DeLong <delong.j@fb.com>
  */
 
-#include "folly/SmallLocks.h"
+#include <folly/SmallLocks.h>
 #include <type_traits>
 #include <glog/logging.h>
 
@@ -147,4 +149,3 @@ static_assert(sizeof(PackedSyncPtr<void>) == 8,
 }
 
 #endif
-