From 83f4ee89d0104f9e46f57fa0dcca08cecefa514c Mon Sep 17 00:00:00 2001 From: Jean-Philippe Andre Date: Thu, 16 Jul 2015 11:39:38 +0900 Subject: [PATCH] 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. --- src/lib/ector/software/Ector_Software.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lib/ector/software/Ector_Software.h b/src/lib/ector/software/Ector_Software.h index 7d003cc3ff..ec074be2fc 100644 --- a/src/lib/ector/software/Ector_Software.h +++ b/src/lib/ector/software/Ector_Software.h @@ -3,7 +3,13 @@ #include +#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"