diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-01-04 05:10:22 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-01-04 09:38:11 +0300 |
commit | fea1026bb8e2b5bfdf247491658c384805b51813 (patch) | |
tree | 5832a7cf88c0190a7f0f1933507dfaf8ca6965bb /source/blender/blenlib | |
parent | dfbda59a66bf15827ed127e61c0cbb4de5563db6 (diff) |
Cleanup: use 'pragma once'
Add explanations for cases the header-guard defines are still used.
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r-- | source/blender/blenlib/BLI_endian_switch.h | 1 | ||||
-rw-r--r-- | source/blender/blenlib/BLI_memory_utils.h | 1 | ||||
-rw-r--r-- | source/blender/blenlib/BLI_task.h | 1 | ||||
-rw-r--r-- | source/blender/blenlib/BLI_utildefines.h | 1 | ||||
-rw-r--r-- | source/blender/blenlib/tests/BLI_ressource_strings.h | 5 |
5 files changed, 5 insertions, 4 deletions
diff --git a/source/blender/blenlib/BLI_endian_switch.h b/source/blender/blenlib/BLI_endian_switch.h index c67c098053d..b512133b34c 100644 --- a/source/blender/blenlib/BLI_endian_switch.h +++ b/source/blender/blenlib/BLI_endian_switch.h @@ -14,6 +14,7 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +/* Use a define instead of `#pragma once` because of `BLI_endian_switch_inline.h` */ #ifndef __BLI_ENDIAN_SWITCH_H__ #define __BLI_ENDIAN_SWITCH_H__ diff --git a/source/blender/blenlib/BLI_memory_utils.h b/source/blender/blenlib/BLI_memory_utils.h index 99ec44cf9ea..79e25e26040 100644 --- a/source/blender/blenlib/BLI_memory_utils.h +++ b/source/blender/blenlib/BLI_memory_utils.h @@ -14,6 +14,7 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +/* Use a define instead of `#pragma once` because of `BLI_utildefines.h` */ #ifndef __BLI_MEMORY_UTILS_H__ #define __BLI_MEMORY_UTILS_H__ diff --git a/source/blender/blenlib/BLI_task.h b/source/blender/blenlib/BLI_task.h index 838993583a2..a3805f71316 100644 --- a/source/blender/blenlib/BLI_task.h +++ b/source/blender/blenlib/BLI_task.h @@ -14,6 +14,7 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +/* Use a define instead of `#pragma once` because of `bmesh_iterators_inline.h` */ #ifndef __BLI_TASK_H__ #define __BLI_TASK_H__ diff --git a/source/blender/blenlib/BLI_utildefines.h b/source/blender/blenlib/BLI_utildefines.h index 40d24f07c25..1c6e6ffe578 100644 --- a/source/blender/blenlib/BLI_utildefines.h +++ b/source/blender/blenlib/BLI_utildefines.h @@ -17,6 +17,7 @@ * All rights reserved. */ +/* Use a define instead of `#pragma once` because of `BLI_memory_utils.h` */ #ifndef __BLI_UTILDEFINES_H__ #define __BLI_UTILDEFINES_H__ diff --git a/source/blender/blenlib/tests/BLI_ressource_strings.h b/source/blender/blenlib/tests/BLI_ressource_strings.h index 119aaeb0036..b685097eb48 100644 --- a/source/blender/blenlib/tests/BLI_ressource_strings.h +++ b/source/blender/blenlib/tests/BLI_ressource_strings.h @@ -1,7 +1,6 @@ /* Apache License, Version 2.0 */ -#ifndef __BLENDER_TESTING_BLI_RESSOURCE_STRING_H__ -#define __BLENDER_TESTING_BLI_RESSOURCE_STRING_H__ +#pragma once /* Data file, don't format. */ /* clang-format off */ @@ -606,5 +605,3 @@ const char words10k[] = ; /* clang-format on */ - -#endif /* __BLENDER_TESTING_BLI_RESSOURCE_STRING_H__ */ |