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

Add kGnuc C++ constant representing __GNUC__

Summary: [Folly] Add `kGnuc` C++ constant representing `__GNUC__` preprocessor constant.

Reviewed By: vitaut

Differential Revision: D18827910

fbshipit-source-id: 43e07e12017df1e7cf4d6a5747e7a85d8a7616f3
parent f2d5818b
......@@ -450,6 +450,12 @@ constexpr auto kMscVer = _MSC_VER;
constexpr auto kMscVer = 0;
#endif
#if __GNUC__
constexpr auto kGnuc = __GNUC__;
#else
constexpr auto kGnuc = 0;
#endif
#if __clang__
constexpr auto kIsClang = true;
#else
......
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