Remove #include for config.h from C++ public header
authorFelipe Magno de Almeida <felipe@expertisesolutions.com.br>
Mon, 2 Nov 2015 21:39:55 +0000 (19:39 -0200)
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>
Mon, 2 Nov 2015 21:39:55 +0000 (19:39 -0200)
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

index 9075c3c..51f3127 100644 (file)
 #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