diff --git a/React/CSSLayout/CSSLayout-internal.h b/React/CSSLayout/CSSLayout-internal.h index b55b597c8..7ba85c328 100644 --- a/React/CSSLayout/CSSLayout-internal.h +++ b/React/CSSLayout/CSSLayout-internal.h @@ -7,8 +7,7 @@ * of patent rights can be found in the PATENTS file in the same directory. */ -#ifndef __CSS_LAYOUT_INTERNAL_H -#define __CSS_LAYOUT_INTERNAL_H +#pragma once #include "CSSLayout.h" #include "CSSNodeList.h" @@ -98,5 +97,3 @@ typedef struct CSSNode { } CSSNode; CSS_EXTERN_C_END - -#endif diff --git a/React/CSSLayout/CSSLayout.h b/React/CSSLayout/CSSLayout.h index 24a3d9c3f..9d5af32a0 100644 --- a/React/CSSLayout/CSSLayout.h +++ b/React/CSSLayout/CSSLayout.h @@ -7,8 +7,7 @@ * of patent rights can be found in the PATENTS file in the same directory. */ -#ifndef __CSS_LAYOUT_H -#define __CSS_LAYOUT_H +#pragma once #include #include @@ -214,5 +213,3 @@ CSS_NODE_LAYOUT_PROPERTY(float, Height); CSS_NODE_LAYOUT_PROPERTY(CSSDirection, Direction); CSS_EXTERN_C_END - -#endif diff --git a/React/CSSLayout/CSSMacros.h b/React/CSSLayout/CSSMacros.h index a2fc8e378..1cf88202b 100644 --- a/React/CSSLayout/CSSMacros.h +++ b/React/CSSLayout/CSSMacros.h @@ -7,8 +7,7 @@ * of patent rights can be found in the PATENTS file in the same directory. */ -#ifndef __CSS_MACROS_H -#define __CSS_MACROS_H +#pragma once #ifdef __cplusplus # define CSS_EXTERN_C_BEGIN extern "C" { @@ -17,5 +16,3 @@ # define CSS_EXTERN_C_BEGIN # define CSS_EXTERN_C_END #endif - -#endif diff --git a/React/CSSLayout/CSSNodeList.h b/React/CSSLayout/CSSNodeList.h index 8883c3ec1..d6904efba 100644 --- a/React/CSSLayout/CSSNodeList.h +++ b/React/CSSLayout/CSSNodeList.h @@ -7,8 +7,7 @@ * of patent rights can be found in the PATENTS file in the same directory. */ -#ifndef __CSS_NODE_LIST_H -#define __CSS_NODE_LIST_H +#pragma once #include #include @@ -31,5 +30,3 @@ CSSNodeRef CSSNodeListDelete(CSSNodeListRef list, CSSNodeRef node); CSSNodeRef CSSNodeListGet(CSSNodeListRef list, uint32_t index); CSS_EXTERN_C_END - -#endif