ector: fix redefinition of type and bizarre typedef

Maybe there is a trick here I am not aware of, but
redefining a type as itself seems a mistake to me.
This raised a warning anyway. Now it's gone.
This commit is contained in:
Jean Guyomarc'h 2016-05-28 22:15:22 +02:00
parent 3a63eacbcb
commit 37adb060dd
1 changed files with 8 additions and 4 deletions

View File

@ -3,14 +3,18 @@
#include <Ector.h>
#include "ector_buffer.eo.h"
#include "software/ector_software_buffer_base.eo.h"
/**
* @typedef Ector_Buffer
* A generic pixel buffer type (2D). May be readable or writeable or both.
*/
typedef Ector_Buffer Ector_Buffer;
typedef Eo Ector_Buffer;
/* Avoid type redefinition */
#define _ECTOR_BUFFER_EO_CLASS_TYPE
#include "ector_buffer.eo.h"
#include "software/ector_software_buffer_base.eo.h"
typedef struct _Ector_Buffer_Data Ector_Buffer_Data;
typedef struct _Ector_Software_Buffer_Base_Data Ector_Software_Buffer_Base_Data;