Ector: Fix potential build errors with double typedef

Depending on the compiler and its version, having twice a
typedef on the same name may lead to a build failure.

Thanks @mythri for the report.
This commit is contained in:
Jean-Philippe Andre 2015-07-16 11:39:38 +09:00
parent 216f738acf
commit 83f4ee89d0
1 changed files with 6 additions and 0 deletions

View File

@ -3,7 +3,13 @@
#include <Ector.h>
#ifndef _ECTOR_SOFTWARE_SURFACE_EO_CLASS_TYPE
#define _ECTOR_SOFTWARE_SURFACE_EO_CLASS_TYPE
typedef Eo Ector_Software_Surface;
#endif
typedef struct _Software_Rasterizer Software_Rasterizer;
#include "software/ector_software_surface.eo.h"