diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-01-10 00:46:38 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-01-10 01:04:44 +0300 |
commit | 5100e4419eb1651886d38d3fa62dec80481a3628 (patch) | |
tree | dd2c0f8c548a9753f0e13ca85d3f2684507ff795 /source | |
parent | f87b93a567fa86ffe784506a1648e4828cfe6272 (diff) |
Cleanup: ensure header guards come first
Causes clang-format not to detect header guards,
indenting all preprocessor lines in the header.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenlib/BLI_endian_switch_inline.h | 6 | ||||
-rw-r--r-- | source/blender/makesrna/RNA_types.h | 5 |
2 files changed, 5 insertions, 6 deletions
diff --git a/source/blender/blenlib/BLI_endian_switch_inline.h b/source/blender/blenlib/BLI_endian_switch_inline.h index 280503e9b93..2be76e67b37 100644 --- a/source/blender/blenlib/BLI_endian_switch_inline.h +++ b/source/blender/blenlib/BLI_endian_switch_inline.h @@ -20,14 +20,14 @@ * ***** END GPL LICENSE BLOCK ***** */ +#ifndef __BLI_ENDIAN_SWITCH_INLINE_H__ +#define __BLI_ENDIAN_SWITCH_INLINE_H__ + /* only include from header */ #ifndef __BLI_ENDIAN_SWITCH_H__ # error "this file isnt to be directly included" #endif -#ifndef __BLI_ENDIAN_SWITCH_INLINE_H__ -#define __BLI_ENDIAN_SWITCH_INLINE_H__ - /** \file blender/blenlib/BLI_endian_switch_inline.h * \ingroup bli */ diff --git a/source/blender/makesrna/RNA_types.h b/source/blender/makesrna/RNA_types.h index 0d972a118e8..f427aeae5a6 100644 --- a/source/blender/makesrna/RNA_types.h +++ b/source/blender/makesrna/RNA_types.h @@ -24,12 +24,11 @@ * \ingroup RNA */ - -#include "../blenlib/BLI_sys_types.h" - #ifndef __RNA_TYPES_H__ #define __RNA_TYPES_H__ +#include "../blenlib/BLI_sys_types.h" + #ifdef __cplusplus extern "C" { #endif |