From f4cde4f65c1d50e1a361444bbd136ecaf779adff Mon Sep 17 00:00:00 2001 From: Emil Sjolander Date: Mon, 5 Dec 2016 04:58:55 -0800 Subject: [PATCH] Add #pragma once and extern C to YGEnums.h Reviewed By: gkassabli Differential Revision: D4274156 fbshipit-source-id: 9fa0ae146bb9e5bd40d93fa3c56f83424ebd2bf9 --- ReactCommon/CSSLayout/CSSLayout/YGEnums.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ReactCommon/CSSLayout/CSSLayout/YGEnums.h b/ReactCommon/CSSLayout/CSSLayout/YGEnums.h index 2a87abf99..85d9d2f9a 100644 --- a/ReactCommon/CSSLayout/CSSLayout/YGEnums.h +++ b/ReactCommon/CSSLayout/CSSLayout/YGEnums.h @@ -7,6 +7,12 @@ * of patent rights can be found in the PATENTS file in the same directory. */ +#pragma once + +#include "YGMacros.h" + +YG_EXTERN_C_BEGIN + typedef enum YGFlexDirection { YGFlexDirectionColumn, YGFlexDirectionColumnReverse, @@ -106,3 +112,5 @@ typedef enum YGAlign { YGAlignStretch, YGAlignCount, } YGAlign; + +YG_EXTERN_C_END