summaryrefslogtreecommitdiff
path: root/cogl/cogl-memory-stack.c
diff options
context:
space:
mode:
authorNeil Roberts <neil@linux.intel.com>2012-04-30 12:05:17 +0100
committerRobert Bragg <robert@linux.intel.com>2012-08-06 14:27:41 +0100
commit85efb7daba9b980569dad1db0ca9ea727de4df6f (patch)
treed8342597dabbd18d0ec02ecf6ed27c68e429636e /cogl/cogl-memory-stack.c
parent805a6247e899440252a2dfe56720123bfb5fd57e (diff)
downloadcogl-85efb7daba9b980569dad1db0ca9ea727de4df6f.tar.gz
Don't typedef CoglMemoryStack twice
CoglMemoryStack was being typedef'd twice, once in the private header as an incomplete struct and once in the C source with the actual struct definition. This removes the second typedef so that it just defines the struct. This patch was written by Jack River. https://bugzilla.gnome.org/show_bug.cgi?id=675119 Reviewed-by: Neil Roberts <neil@linux.intel.com> (cherry picked from commit 75cd425a48e0fc403bf88eace212a6d37b65df11)
Diffstat (limited to 'cogl/cogl-memory-stack.c')
-rw-r--r--cogl/cogl-memory-stack.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cogl/cogl-memory-stack.c b/cogl/cogl-memory-stack.c
index 5a939ec8..826a8922 100644
--- a/cogl/cogl-memory-stack.c
+++ b/cogl/cogl-memory-stack.c
@@ -70,13 +70,13 @@ struct _CoglMemorySubStack
uint8_t *data;
};
-typedef struct _CoglMemoryStack
+struct _CoglMemoryStack
{
CoglMemorySubStackList sub_stacks;
CoglMemorySubStack *sub_stack;
size_t sub_stack_offset;
-} CoglMemoryStack;
+};
static CoglMemorySubStack *
_cogl_memory_sub_stack_alloc (size_t bytes)