Skip to content

Commit 2d168fc

Browse files
Emil SjolanderFacebook Github Bot
authored andcommitted
use #pragma once
Reviewed By: lucasr Differential Revision: D3648895 fbshipit-source-id: faf42cda82764adaf41cf3f3f9109d48aea203fe
1 parent ef585e3 commit 2d168fc

File tree

4 files changed

+4
-16
lines changed

4 files changed

+4
-16
lines changed

React/CSSLayout/CSSLayout-internal.h

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

10-
#ifndef __CSS_LAYOUT_INTERNAL_H
11-
#define __CSS_LAYOUT_INTERNAL_H
10+
#pragma once
1211

1312
#include "CSSLayout.h"
1413
#include "CSSNodeList.h"
@@ -98,5 +97,3 @@ typedef struct CSSNode {
9897
} CSSNode;
9998

10099
CSS_EXTERN_C_END
101-
102-
#endif

React/CSSLayout/CSSLayout.h

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

10-
#ifndef __CSS_LAYOUT_H
11-
#define __CSS_LAYOUT_H
10+
#pragma once
1211

1312
#include <assert.h>
1413
#include <math.h>
@@ -214,5 +213,3 @@ CSS_NODE_LAYOUT_PROPERTY(float, Height);
214213
CSS_NODE_LAYOUT_PROPERTY(CSSDirection, Direction);
215214

216215
CSS_EXTERN_C_END
217-
218-
#endif

React/CSSLayout/CSSMacros.h

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

10-
#ifndef __CSS_MACROS_H
11-
#define __CSS_MACROS_H
10+
#pragma once
1211

1312
#ifdef __cplusplus
1413
# define CSS_EXTERN_C_BEGIN extern "C" {
@@ -17,5 +16,3 @@
1716
# define CSS_EXTERN_C_BEGIN
1817
# define CSS_EXTERN_C_END
1918
#endif
20-
21-
#endif

React/CSSLayout/CSSNodeList.h

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

10-
#ifndef __CSS_NODE_LIST_H
11-
#define __CSS_NODE_LIST_H
10+
#pragma once
1211

1312
#include <assert.h>
1413
#include <stdlib.h>
@@ -31,5 +30,3 @@ CSSNodeRef CSSNodeListDelete(CSSNodeListRef list, CSSNodeRef node);
3130
CSSNodeRef CSSNodeListGet(CSSNodeListRef list, uint32_t index);
3231

3332
CSS_EXTERN_C_END
34-
35-
#endif

0 commit comments

Comments
 (0)