X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=folly%2FPackedSyncPtr.h;h=97ff844c23595f39fbc477b10b2d0aeaee5617bf;hb=422c78beb630d6d5518ba357d3f8ae7d792d6415;hp=2c8745d2a494f72fac9f0e35a66c00d740cd0aca;hpb=f0ced414840d5c29e6ced3466004dc1a122b51c1;p=folly.git diff --git a/folly/PackedSyncPtr.h b/folly/PackedSyncPtr.h index 2c8745d2..97ff844c 100644 --- a/folly/PackedSyncPtr.h +++ b/folly/PackedSyncPtr.h @@ -1,5 +1,5 @@ /* - * Copyright 2012 Facebook, Inc. + * Copyright 2015 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,8 +17,10 @@ #ifndef FOLLY_PACKEDSYNCPTR_H_ #define FOLLY_PACKEDSYNCPTR_H_ -#ifndef __x86_64__ -# error "PackedSyncPtr is x64-specific code." +#include + +#if !FOLLY_X64 && !FOLLY_PPC64 +# error "PackedSyncPtr is x64 and ppc64 specific code." #endif /* @@ -51,7 +53,7 @@ * @author Jordan DeLong */ -#include "folly/SmallLocks.h" +#include #include #include @@ -147,4 +149,3 @@ static_assert(sizeof(PackedSyncPtr) == 8, } #endif -