Skip to content

Commit f4cde4f

Browse files
Emil SjolanderFacebook Github Bot
authored andcommitted
Add #pragma once and extern C to YGEnums.h
Reviewed By: gkassabli Differential Revision: D4274156 fbshipit-source-id: 9fa0ae146bb9e5bd40d93fa3c56f83424ebd2bf9
1 parent 682f540 commit f4cde4f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ReactCommon/CSSLayout/CSSLayout/YGEnums.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@
77
* of patent rights can be found in the PATENTS file in the same directory.
88
*/
99

10+
#pragma once
11+
12+
#include "YGMacros.h"
13+
14+
YG_EXTERN_C_BEGIN
15+
1016
typedef enum YGFlexDirection {
1117
YGFlexDirectionColumn,
1218
YGFlexDirectionColumnReverse,
@@ -106,3 +112,5 @@ typedef enum YGAlign {
106112
YGAlignStretch,
107113
YGAlignCount,
108114
} YGAlign;
115+
116+
YG_EXTERN_C_END

0 commit comments

Comments
 (0)