msvc packed attribute translation
[folly.git] / folly / test / PackedSyncPtrTest.cpp
index 8ef3791f1334d7fd83b456b94b4b0f17c90ae03d..0406b56d1f1ab2a4d8b4f6dca550e4f37db33abb 100644 (file)
@@ -28,7 +28,9 @@ namespace {
 
 // Compile time check for packability.  This requires that
 // PackedSyncPtr is a POD struct on gcc.
-struct ignore { PackedSyncPtr<int> foo; char c; } __attribute__((packed));
+FOLLY_PACK_PUSH
+struct ignore { PackedSyncPtr<int> foo; char c; } FOLLY_PACK_ATTR;
+FOLLY_PACK_POP
 static_assert(sizeof(ignore) == 9, "PackedSyncPtr wasn't packable");
 
 }