summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2015-11-02 19:39:55 -0200
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2015-11-02 19:39:55 -0200
commit3e29939dba0698d7729c85ae4c53f798e44c3239 (patch)
tree76a2c318f6bf96835133b1645b3fb596e9a482eb
parent9115c17b70a311d6799c14dd5793bc1c4a89c8c5 (diff)
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.
-rw-r--r--src/lib/Elementary.hh.in8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/lib/Elementary.hh.in b/src/lib/Elementary.hh.in
index 9075c3c09..51f31270f 100644
--- a/src/lib/Elementary.hh.in
+++ b/src/lib/Elementary.hh.in
@@ -11,12 +11,8 @@
11#error Do not include Elm C API headers before including Elementary.hh 11#error Do not include Elm C API headers before including Elementary.hh
12#endif 12#endif
13 13
14#ifdef HAVE_CONFIG_H 14#define EFL_BETA_API_SUPPORT 1
15extern "C" { 15#define EFL_EO_API_SUPPORT 1
16#include <elementary_config.h>
17}
18#endif
19
20#define ELM_INTERNAL_API_ARGESFSDFEFC 16#define ELM_INTERNAL_API_ARGESFSDFEFC
21#define ELM_WIDGET_ITEM_PROTECTED 17#define ELM_WIDGET_ITEM_PROTECTED
22 18