Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/blenlib/BLI_temporary_allocator_cxx.h')
-rw-r--r--source/blender/blenlib/BLI_temporary_allocator_cxx.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/blenlib/BLI_temporary_allocator_cxx.h b/source/blender/blenlib/BLI_temporary_allocator_cxx.h
index be898f8c78d..06159f68059 100644
--- a/source/blender/blenlib/BLI_temporary_allocator_cxx.h
+++ b/source/blender/blenlib/BLI_temporary_allocator_cxx.h
@@ -14,12 +14,13 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
+#ifndef __BLI_TEMPORARY_ALLOCATOR_CXX_H__
+#define __BLI_TEMPORARY_ALLOCATOR_CXX_H__
+
/** \file
* \ingroup bli
*/
-#pragma once
-
#include "BLI_temporary_allocator.h"
namespace BLI {
@@ -33,3 +34,5 @@ template<typename T> MutableArrayRef<T> temporary_allocate_array(uint size)
}
}; // namespace BLI
+
+#endif /* __BLI_TEMPORARY_ALLOCATOR_CXX_H__ */