[Bf-blender-cvs] [d853186413f] collada: Cleanup Collada: Added #ifdef to avoid duplicate include

Gaia Clary noreply at git.blender.org
Wed Mar 28 21:30:35 CEST 2018


Commit: d853186413f0e7c3f7c75f04d3bc86e50eebef6f
Author: Gaia Clary
Date:   Mon Mar 5 18:03:44 2018 +0100
Branches: collada
https://developer.blender.org/rBd853186413f0e7c3f7c75f04d3bc86e50eebef6f

Cleanup Collada: Added #ifdef to avoid duplicate include

This avoids that the include file AnimationExporter.h
gets included more than once.

===================================================================

M	source/blender/collada/AnimationExporter.h

===================================================================

diff --git a/source/blender/collada/AnimationExporter.h b/source/blender/collada/AnimationExporter.h
index 6798e18b909..f73c3e8ffd4 100644
--- a/source/blender/collada/AnimationExporter.h
+++ b/source/blender/collada/AnimationExporter.h
@@ -20,6 +20,9 @@
  * ***** END GPL LICENSE BLOCK *****
  */
 
+#ifndef __ANIMATION_EXPORTER_H__
+#define __ANIMATION_EXPORTER_H__
+
 #include <stdlib.h>
 #include <stdio.h>
 #include <math.h>
@@ -215,3 +218,5 @@ protected:
 
 
 };
+
+#endif
\ No newline at end of file



More information about the Bf-blender-cvs mailing list