summaryrefslogtreecommitdiff
path: root/cogl/cogl-attribute.h
diff options
context:
space:
mode:
Diffstat (limited to 'cogl/cogl-attribute.h')
-rw-r--r--cogl/cogl-attribute.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/cogl/cogl-attribute.h b/cogl/cogl-attribute.h
index a9ec03ef..b59402cb 100644
--- a/cogl/cogl-attribute.h
+++ b/cogl/cogl-attribute.h
@@ -31,6 +31,11 @@
#ifndef __COGL_ATTRIBUTE_H__
#define __COGL_ATTRIBUTE_H__
+/* We forward declare the CoglAttribute type here to avoid some circular
+ * dependency issues with the following headers.
+ */
+typedef struct _CoglAttribute CoglAttribute;
+
#include <cogl/cogl-attribute-buffer.h>
#include <cogl/cogl-indices.h>
@@ -44,8 +49,6 @@ G_BEGIN_DECLS
* FIXME
*/
-typedef struct _CoglAttribute CoglAttribute;
-
/**
* cogl_attribute_new:
* @attribute_buffer: The #CoglAttributeBuffer containing the actual