diff options
Diffstat (limited to 'source/blender/blenlib/BLI_array_ref.h')
-rw-r--r-- | source/blender/blenlib/BLI_array_ref.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/blenlib/BLI_array_ref.h b/source/blender/blenlib/BLI_array_ref.h index a771d1c1329..1373a0da355 100644 --- a/source/blender/blenlib/BLI_array_ref.h +++ b/source/blender/blenlib/BLI_array_ref.h @@ -14,6 +14,9 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#ifndef __BLI_ARRAY_REF_H__ +#define __BLI_ARRAY_REF_H__ + /** \file * \ingroup bli * @@ -32,8 +35,6 @@ * Since array references do not own any memory, it is generally not save to store them. */ -#pragma once - #include <vector> #include <array> #include <algorithm> @@ -421,3 +422,5 @@ template<typename T> ArrayRef<T> ref_c_array(const T *array, uint size) } } /* namespace BLI */ + +#endif /* __BLI_ARRAY_REF_H__ */ |