X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=folly%2FTraits.h;h=2b94df1360effe21828adedb51b864e7d2282116;hb=fd915b73606e09a5f46a1bca0a5d3643a1567014;hp=f5fe5816cf0e2f456aa665788a2795ec289345a1;hpb=2549fb3c263e2d50630e5f42c0ff404b76cb7370;p=folly.git diff --git a/folly/Traits.h b/folly/Traits.h index f5fe5816..2b94df13 100644 --- a/folly/Traits.h +++ b/folly/Traits.h @@ -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. @@ -22,10 +22,20 @@ #include #include #include - -#include "folly/Portability.h" - +#include + +#include + +// libc++ doesn't provide this header, nor does msvc +#ifdef FOLLY_HAVE_BITS_CXXCONFIG_H +// This file appears in two locations: inside fbcode and in the +// libstdc++ source code (when embedding fbstring as std::string). +// To aid in this schizophrenic use, two macros are defined in +// c++config.h: +// _LIBSTDCXX_FBSTRING - Set inside libstdc++. This is useful to +// gate use inside fbcode v. libstdc++ #include +#endif #include #include