eo: avoid redefinition of type Efl_Promise
authorJean Guyomarc'h <jean@guyomarch.bzh>
Fri, 9 Sep 2016 06:39:02 +0000 (08:39 +0200)
committerJean Guyomarc'h <jean@guyomarch.bzh>
Fri, 9 Sep 2016 06:44:46 +0000 (08:44 +0200)
clang complained about type redefinition being a C11 feature, throwing a
warning for each compiling unit including Eo.h.

src/lib/eo/efl_future.h

index 78dc273..61ce03d 100644 (file)
@@ -11,6 +11,7 @@
  * The type of Efl Promise used in asynchronous operation, the write side of a promise.
  */
 typedef Eo Efl_Promise;
+#define _EFL_PROMISE_EO_CLASS_TYPE
 
 #define EFL_FUTURE_CLASS efl_future_class_get()
 EWAPI const Efl_Class *efl_future_class_get(void);