[Cogl] [PATCH] cogl-path: fix compile outside of source tree

Neil Roberts neil at linux.intel.com
Wed Jul 3 05:06:17 PDT 2013


Thanks for the patch. However I think we additionally need to make it
include cogl.h instead of directly including the cogl-*.h headers
because that isn't allowed outside of building Cogl. Here is an
updated patch which does that.

Regards,
- Neil

-- >8 --

From: Andreas Oberritter <obi at saftware.de>

cogl-path.h doesn't get included from cogl.h anymore. It also can't
include cogl-*.h headers directly and must include the whole cogl.h
instead.

Signed-off-by: Andreas Oberritter <obi at saftware.de>
---
 cogl-path/cogl-path.h | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/cogl-path/cogl-path.h b/cogl-path/cogl-path.h
index bba53e3..594a62b 100644
--- a/cogl-path/cogl-path.h
+++ b/cogl-path/cogl-path.h
@@ -21,15 +21,10 @@
  *
  */
 
-#if !defined(__COGL_H_INSIDE__) && !defined(COGL_COMPILATION)
-#error "Only <cogl/cogl.h> can be included directly."
-#endif
-
 #ifndef __COGL_PATH_H__
 #define __COGL_PATH_H__
 
-#include <cogl/cogl-types.h>
-#include <cogl/cogl-context.h>
+#include <cogl/cogl.h>
 
 COGL_BEGIN_DECLS
 
-- 
1.7.11.3.g3c3efa5



More information about the Cogl mailing list