[Bf-blender-cvs] [f22331ad217] master: Cleanup: Move include statements outside of extern "C"
Sergey Sharybin
noreply at git.blender.org
Wed Mar 23 12:43:07 CET 2022
Commit: f22331ad217b55f8814c0c15a2dee4425407f9a8
Author: Sergey Sharybin
Date: Wed Mar 23 12:41:09 2022 +0100
Branches: master
https://developer.blender.org/rBf22331ad217b55f8814c0c15a2dee4425407f9a8
Cleanup: Move include statements outside of extern "C"
The linking type is to be specified in thew header when
it is really needed.
===================================================================
M source/blender/freestyle/intern/python/BPy_Freestyle.cpp
===================================================================
diff --git a/source/blender/freestyle/intern/python/BPy_Freestyle.cpp b/source/blender/freestyle/intern/python/BPy_Freestyle.cpp
index 63585df97a9..96bab8c2028 100644
--- a/source/blender/freestyle/intern/python/BPy_Freestyle.cpp
+++ b/source/blender/freestyle/intern/python/BPy_Freestyle.cpp
@@ -31,6 +31,13 @@
#include "BPy_ViewMap.h"
#include "BPy_ViewShape.h"
+#include "BKE_appdir.h"
+#include "DNA_scene_types.h"
+#include "FRS_freestyle.h"
+#include "RNA_access.h"
+#include "RNA_prototypes.h"
+#include "bpy_rna.h" /* pyrna_struct_CreatePyObject() */
+
#ifdef __cplusplus
extern "C" {
#endif
@@ -39,13 +46,6 @@ extern "C" {
//------------------------ MODULE FUNCTIONS ----------------------------------
-#include "BKE_appdir.h"
-#include "DNA_scene_types.h"
-#include "FRS_freestyle.h"
-#include "RNA_access.h"
-#include "RNA_prototypes.h"
-#include "bpy_rna.h" /* pyrna_struct_CreatePyObject() */
-
static char Freestyle_getCurrentScene___doc__[] =
".. function:: getCurrentScene()\n"
"\n"
More information about the Bf-blender-cvs
mailing list