summaryrefslogtreecommitdiff
path: root/cogl-path/cogl-path.h
diff options
context:
space:
mode:
Diffstat (limited to 'cogl-path/cogl-path.h')
-rw-r--r--cogl-path/cogl-path.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/cogl-path/cogl-path.h b/cogl-path/cogl-path.h
index 594a62b5..81a6ac6f 100644
--- a/cogl-path/cogl-path.h
+++ b/cogl-path/cogl-path.h
@@ -24,7 +24,11 @@
#ifndef __COGL_PATH_H__
#define __COGL_PATH_H__
+#ifdef COGL_COMPILATION
+#include "cogl-context.h"
+#else
#include <cogl/cogl.h>
+#endif
COGL_BEGIN_DECLS
@@ -46,11 +50,8 @@ COGL_BEGIN_DECLS
* vertices of the path segments relative to the last pen location
* rather then in the absolute coordinates.
*/
-
typedef struct _CoglPath CoglPath;
-#define COGL_PATH(obj) ((CoglPath *)(obj))
-
/**
* cogl_path_new:
* @context: A #CoglContext pointer