diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-02-11 03:37:35 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-02-11 03:37:35 +0300 |
commit | 906b8a241a7884119982789e1ffded8a79c45219 (patch) | |
tree | 23f0e2a83118e0f262e30fd9dfbaed5194c31ad9 /source/blender/blenlib/BLI_optional.h | |
parent | a66b9490a10b114b7d6b7350b06010f98887ca84 (diff) |
Cleanup: add license header, use header guards
Diffstat (limited to 'source/blender/blenlib/BLI_optional.h')
-rw-r--r-- | source/blender/blenlib/BLI_optional.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/blenlib/BLI_optional.h b/source/blender/blenlib/BLI_optional.h index 8429cddc710..90bded604ea 100644 --- a/source/blender/blenlib/BLI_optional.h +++ b/source/blender/blenlib/BLI_optional.h @@ -20,7 +20,8 @@ * Simple version of std::optional, which is only available since C++17. */ -#pragma once +#ifndef __BLI_OPTIONAL_H__ +#define __BLI_OPTIONAL_H__ #include "BLI_utildefines.h" #include "BLI_memory_utils_cxx.h" @@ -194,3 +195,5 @@ template<typename T> class Optional { }; } /* namespace BLI */ + +#endif /* __BLI_OPTIONAL_H__ */ |