stefan pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=9f5e5ae7326cd3bdef6675cb9ca11b86e7b416d1

commit 9f5e5ae7326cd3bdef6675cb9ca11b86e7b416d1
Author: Stefan Schmidt <ste...@osg.samsung.com>
Date:   Wed Aug 3 13:48:02 2016 +0200

    elm: scrollable: add guards to include eo and legacy header only when 
allowed
    
    Make sure the eo and legacy headers are only included when the matching 
defines
    are enabled.
---
 src/lib/elementary/elm_interface_scrollable.h | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/src/lib/elementary/elm_interface_scrollable.h 
b/src/lib/elementary/elm_interface_scrollable.h
index f216726..402e306 100644
--- a/src/lib/elementary/elm_interface_scrollable.h
+++ b/src/lib/elementary/elm_interface_scrollable.h
@@ -31,7 +31,12 @@
  * Elm_Scrollable_Smart_Interface::extern_pan_set.
  */
 
+#ifdef EFL_EO_API_SUPPORT
 #include "elm_pan.eo.h"
+#endif
+#ifndef EFL_NOLEGACY_API_SUPPORT
+#include "elm_pan.eo.legacy.h"
+#endif
 
 /**
  * Elementary scroller panning base smart data.
@@ -57,7 +62,12 @@ typedef void      
(*Elm_Interface_Scrollable_Resize_Cb)(Evas_Object *obj, Evas_C
 typedef struct _Elm_Scrollable_Smart_Interface_Data
   Elm_Scrollable_Smart_Interface_Data;
 
+#ifdef EFL_EO_API_SUPPORT
 #include "elm_interface_scrollable.eo.h"
+#endif
+#ifndef EFL_NOLEGACY_API_SUPPORT
+#include "elm_interface_scrollable.eo.legacy.h"
+#endif
 
 struct _Elm_Scrollable_Smart_Interface_Data
 {

-- 


Reply via email to