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:
authorCampbell Barton <ideasman42@gmail.com>2021-01-04 05:10:22 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-01-04 09:38:11 +0300
commitfea1026bb8e2b5bfdf247491658c384805b51813 (patch)
tree5832a7cf88c0190a7f0f1933507dfaf8ca6965bb /source/blender/makesdna
parentdfbda59a66bf15827ed127e61c0cbb4de5563db6 (diff)
Cleanup: use 'pragma once'
Add explanations for cases the header-guard defines are still used.
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r--source/blender/makesdna/DNA_asset_types.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/source/blender/makesdna/DNA_asset_types.h b/source/blender/makesdna/DNA_asset_types.h
index 671012e54ef..697d25653f8 100644
--- a/source/blender/makesdna/DNA_asset_types.h
+++ b/source/blender/makesdna/DNA_asset_types.h
@@ -18,11 +18,14 @@
* \ingroup DNA
*/
-#ifndef __DNA_ASSET_TYPES_H__
-#define __DNA_ASSET_TYPES_H__
+#pragma once
#include "DNA_listBase.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/**
* \brief User defined tag.
* Currently only used by assets, could be used more often at some point.
@@ -59,4 +62,6 @@ typedef struct AssetMetaData {
char _pad[4];
} AssetMetaData;
-#endif /* __DNA_ASSET_TYPES_H__ */
+#ifdef __cplusplus
+}
+#endif