felipealmeida pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=3e29939dba0698d7729c85ae4c53f798e44c3239

commit 3e29939dba0698d7729c85ae4c53f798e44c3239
Author: Felipe Magno de Almeida <fel...@expertisesolutions.com.br>
Date:   Mon Nov 2 19:39:55 2015 -0200

    Remove #include for config.h from C++ public header
    
    Removed #include for elementary_config.h if HAVE_CONFIG_H is
    defined. Which causes errors with external projects. Instead,
    defined the necessary macros to use the Eo API.
---
 src/lib/Elementary.hh.in | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/src/lib/Elementary.hh.in b/src/lib/Elementary.hh.in
index 9075c3c..51f3127 100644
--- a/src/lib/Elementary.hh.in
+++ b/src/lib/Elementary.hh.in
@@ -11,12 +11,8 @@
 #error Do not include Elm C API headers before including Elementary.hh
 #endif
 
-#ifdef HAVE_CONFIG_H
-extern "C" {
-#include <elementary_config.h>
-}
-#endif
-
+#define EFL_BETA_API_SUPPORT 1
+#define EFL_EO_API_SUPPORT 1
 #define ELM_INTERNAL_API_ARGESFSDFEFC
 #define ELM_WIDGET_ITEM_PROTECTED
 

-- 


Reply via email to