Ector: Fix potential build errors with double typedef
authorJean-Philippe Andre <jp.andre@samsung.com>
Thu, 16 Jul 2015 02:39:38 +0000 (11:39 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Thu, 16 Jul 2015 09:22:55 +0000 (18:22 +0900)
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

index 7d003cc..ec074be 100644 (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"