Commit 978cb2f0 authored by Nicholas Ormrod's avatar Nicholas Ormrod Committed by Pavlo Kushnir

Override for include-guard

Summary:
In certain circumstances, it is appropriate to omit and include
guard. Add an option to allow this to be overriden.

Test Plan: Build flint, run it on folly, see no include-guard errors.

Reviewed By: andrei.alexandrescu@fb.com

Subscribers: sdwilsh, louisk, njormrod, folly-diffs@

FB internal diff: D1644170

Tasks: 5486739

Signature: t1:1644170:1414616595:7ac52f474c1312a0c28e89255b1151d56c680acf
parent 8b05be27
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
// //
// Note: no include guard; different -inl.h files include this and // Note: no include guard; different -inl.h files include this and
// undef it more than once in a translation unit. // undef it more than once in a translation unit.
// override-include-guard
#if !(defined(__x86__) || defined(__i386__) || FOLLY_X64) #if !(defined(__x86__) || defined(__i386__) || FOLLY_X64)
#define FOLLY_SPIN_WAIT(condition) \ #define FOLLY_SPIN_WAIT(condition) \
......
...@@ -17,6 +17,8 @@ ...@@ -17,6 +17,8 @@
/** /**
* This file is supposed to be included from within * This file is supposed to be included from within
* FBStringTest. Do not use otherwise. * FBStringTest. Do not use otherwise.
*
* override-include-guard
*/ */
void BENCHFUN(initRNG)(int iters, int) { void BENCHFUN(initRNG)(int iters, int) {
......
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