[Bf-blender-cvs] [ad2064a] master: Fix compilation error of Freestyle

Sergey Sharybin noreply at git.blender.org
Thu Apr 17 12:04:56 CEST 2014


Commit: ad2064ae88eabead6e6fe80999f448087ad186cd
Author: Sergey Sharybin
Date:   Thu Apr 17 16:04:01 2014 +0600
https://developer.blender.org/rBad2064ae88eabead6e6fe80999f448087ad186cd

Fix compilation error of Freestyle

Seems to be some sort of namespace conflict or so which is
solved by reshuffling the includes a bit.

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

M	source/blender/freestyle/intern/geometry/FastGrid.cpp
M	source/blender/freestyle/intern/stroke/Chain.cpp
M	source/blender/freestyle/intern/stroke/Curve.cpp
M	source/blender/freestyle/intern/stroke/CurveIterators.h
M	source/blender/freestyle/intern/stroke/Stroke.cpp
M	source/blender/freestyle/intern/stroke/StrokeRep.cpp
M	source/blender/freestyle/intern/view_map/SilhouetteGeomEngine.cpp
M	source/blender/freestyle/intern/view_map/ViewMap.cpp
M	source/blender/freestyle/intern/view_map/ViewMapIO.cpp

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

diff --git a/source/blender/freestyle/intern/geometry/FastGrid.cpp b/source/blender/freestyle/intern/geometry/FastGrid.cpp
index ddfc8bd..2ce4244 100644
--- a/source/blender/freestyle/intern/geometry/FastGrid.cpp
+++ b/source/blender/freestyle/intern/geometry/FastGrid.cpp
@@ -25,6 +25,8 @@
  *  \date 30/07/2002
  */
 
+#include <cstdlib>
+
 #include "FastGrid.h"
 
 #include "BKE_global.h"
diff --git a/source/blender/freestyle/intern/stroke/Chain.cpp b/source/blender/freestyle/intern/stroke/Chain.cpp
index c09ccbd..7fd7564 100644
--- a/source/blender/freestyle/intern/stroke/Chain.cpp
+++ b/source/blender/freestyle/intern/stroke/Chain.cpp
@@ -27,8 +27,8 @@
 
 #include "Chain.h"
 
-#include "../view_map/ViewMapAdvancedIterators.h"
 #include "../view_map/ViewMapIterators.h"
+#include "../view_map/ViewMapAdvancedIterators.h"
 
 namespace Freestyle {
 
diff --git a/source/blender/freestyle/intern/stroke/Curve.cpp b/source/blender/freestyle/intern/stroke/Curve.cpp
index 2b281a2..32cfac0 100644
--- a/source/blender/freestyle/intern/stroke/Curve.cpp
+++ b/source/blender/freestyle/intern/stroke/Curve.cpp
@@ -26,8 +26,8 @@
  */
 
 #include "Curve.h"
-#include "CurveAdvancedIterators.h"
 #include "CurveIterators.h"
+#include "CurveAdvancedIterators.h"
 
 #include "BKE_global.h"
 #include "BLI_utildefines.h"
diff --git a/source/blender/freestyle/intern/stroke/CurveIterators.h b/source/blender/freestyle/intern/stroke/CurveIterators.h
index c1bec1e..ff7b2d0 100644
--- a/source/blender/freestyle/intern/stroke/CurveIterators.h
+++ b/source/blender/freestyle/intern/stroke/CurveIterators.h
@@ -43,7 +43,7 @@ namespace CurveInternal {
 class CurvePointIterator : public Interface0DIteratorNested
 { 
 public:
-	friend class Curve;
+	friend class Freestyle::Curve;
 
 public:
 	float _CurvilinearLength;
diff --git a/source/blender/freestyle/intern/stroke/Stroke.cpp b/source/blender/freestyle/intern/stroke/Stroke.cpp
index 159e4a3..86625e6 100644
--- a/source/blender/freestyle/intern/stroke/Stroke.cpp
+++ b/source/blender/freestyle/intern/stroke/Stroke.cpp
@@ -26,8 +26,8 @@
  */
 
 #include "Stroke.h"
-#include "StrokeAdvancedIterators.h"
 #include "StrokeIterators.h"
+#include "StrokeAdvancedIterators.h"
 #include "StrokeRenderer.h"
 
 #include "BKE_global.h"
diff --git a/source/blender/freestyle/intern/stroke/StrokeRep.cpp b/source/blender/freestyle/intern/stroke/StrokeRep.cpp
index fb6da85..1b9ab72 100644
--- a/source/blender/freestyle/intern/stroke/StrokeRep.cpp
+++ b/source/blender/freestyle/intern/stroke/StrokeRep.cpp
@@ -26,8 +26,8 @@
  */
 
 #include "Stroke.h"
-#include "StrokeAdvancedIterators.h"
 #include "StrokeIterators.h"
+#include "StrokeAdvancedIterators.h"
 #include "StrokeRenderer.h"
 #include "StrokeRep.h"
 
diff --git a/source/blender/freestyle/intern/view_map/SilhouetteGeomEngine.cpp b/source/blender/freestyle/intern/view_map/SilhouetteGeomEngine.cpp
index 8b8f42f..d650e38 100644
--- a/source/blender/freestyle/intern/view_map/SilhouetteGeomEngine.cpp
+++ b/source/blender/freestyle/intern/view_map/SilhouetteGeomEngine.cpp
@@ -26,6 +26,8 @@
  *  \date 03/09/2002
  */
 
+#include <cstring>
+
 #include "Silhouette.h"
 #include "SilhouetteGeomEngine.h"
 
diff --git a/source/blender/freestyle/intern/view_map/ViewMap.cpp b/source/blender/freestyle/intern/view_map/ViewMap.cpp
index 246c4ca..fd5ebb9 100644
--- a/source/blender/freestyle/intern/view_map/ViewMap.cpp
+++ b/source/blender/freestyle/intern/view_map/ViewMap.cpp
@@ -28,8 +28,8 @@
 #include <float.h>
 
 #include "ViewMap.h"
-#include "ViewMapAdvancedIterators.h"
 #include "ViewMapIterators.h"
+#include "ViewMapAdvancedIterators.h"
 
 #include "../geometry/GeomUtils.h"
 
diff --git a/source/blender/freestyle/intern/view_map/ViewMapIO.cpp b/source/blender/freestyle/intern/view_map/ViewMapIO.cpp
index 3c01de3..71ae68c 100644
--- a/source/blender/freestyle/intern/view_map/ViewMapIO.cpp
+++ b/source/blender/freestyle/intern/view_map/ViewMapIO.cpp
@@ -25,6 +25,8 @@
  *  \date 09/01/2003
  */
 
+#include <limits.h>
+
 #include "ViewMapIO.h"
 
 #ifdef IRIX




More information about the Bf-blender-cvs mailing list