[Spice-devel] [PATCH 6/9] client/cegui: cegui 0.6.0 gcc 4.6.0 related fix

Alon Levy alevy at redhat.com
Tue Jan 25 07:34:02 PST 2011


cegui doesn't include stddef required for ptrdiff_t type, we
include it for it.
---
 client/gui/resource_provider.h |    3 +++
 client/gui/softrenderer.h      |    2 ++
 client/gui/softtexture.h       |    3 +++
 3 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/client/gui/resource_provider.h b/client/gui/resource_provider.h
index 1443abe..c313688 100644
--- a/client/gui/resource_provider.h
+++ b/client/gui/resource_provider.h
@@ -1,6 +1,9 @@
 #ifndef _H_RESOURCE_PROVIDER
 #define _H_RESOURCE_PROVIDER
 
+/* CEGUI 0.6 bug, CEGUITexture.h doesn't include this, we need to */
+#include <cstddef>
+
 #include "CEGUIDefaultResourceProvider.h"
 
 class CEGUIResourceProvider: public CEGUI::ResourceProvider {
diff --git a/client/gui/softrenderer.h b/client/gui/softrenderer.h
index 9fc1a29..f5155ad 100644
--- a/client/gui/softrenderer.h
+++ b/client/gui/softrenderer.h
@@ -4,6 +4,8 @@
 #include <stdint.h>
 #include <list>
 #include <set>
+/* CEGUI 0.6 bug, CEGUITexture.h doesn't include this, we need to */
+#include <cstddef>
 
 #include "CEGUIRenderer.h"
 #include "CEGUIColourRect.h"
diff --git a/client/gui/softtexture.h b/client/gui/softtexture.h
index 37617f2..788795f 100644
--- a/client/gui/softtexture.h
+++ b/client/gui/softtexture.h
@@ -3,6 +3,9 @@
 #define _softtexture_h_
 
 #include <stdint.h>
+/* CEGUI 0.6 bug, CEGUITexture.h doesn't include this, we need to */
+#include <cstddef>
+
 #include "CEGUIBase.h"
 #include "CEGUITexture.h"
 
-- 
1.7.3.5



More information about the Spice-devel mailing list