Commit c5e6d87b authored by Yedidya Feldblum's avatar Yedidya Feldblum Committed by Facebook Github Bot

Skip defined checks in folly/Memory.h

Summary:
[Folly] Skip `defined` checks in `folly/Memory.h`.

Undefined symbols, when evaluated by the preprocessor in preprocessor integer contexts, evaluate to `0`. That works for these checks.

Reviewed By: ericniebler

Differential Revision: D4385026

fbshipit-source-id: 3162f8b83431ebab2de53f9ba202e7ea8c339210
parent 084f9e18
...@@ -36,10 +36,8 @@ namespace folly { ...@@ -36,10 +36,8 @@ namespace folly {
* @author Xu Ning (xning@fb.com) * @author Xu Ning (xning@fb.com)
*/ */
#if __cplusplus >= 201402L || \ #if __cplusplus >= 201402L || __cpp_lib_make_unique >= 201304L || \
(defined __cpp_lib_make_unique && __cpp_lib_make_unique >= 201304L) || \ (__ANDROID__ && __cplusplus >= 201300L) || _MSC_VER >= 1900
(defined __ANDROID__ && __cplusplus >= 201300L) || \
(defined(_MSC_VER) && _MSC_VER >= 1900)
/* using override */ using std::make_unique; /* using override */ using std::make_unique;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment