priv: centralized and safe inclusion of Ecore_Cocoa.h 37/82937/2
authorJean Guyomarc'h <jean.guyomarch@openwide.fr>
Wed, 14 Oct 2015 07:12:28 +0000 (09:12 +0200)
committerHermet Park <chuneon.park@samsung.com>
Fri, 12 Aug 2016 01:37:09 +0000 (18:37 -0700)
Change-Id: I6a1f4c7530734a0d4910499a698700be96f01dc6
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
src/lib/elm_cnp.c
src/lib/elm_priv.h
src/lib/els_cursor.c

index 47bfb1e..8ef65ad 100644 (file)
@@ -8,10 +8,6 @@
 # include <sys/mman.h>
 #endif
 
-#ifdef HAVE_ELEMENTARY_COCOA
-# include <Ecore_Cocoa.h>
-#endif
-
 //#define DEBUGON 1
 #ifdef DEBUGON
 # define cnp_debug(fmt, args...) fprintf(stderr, __FILE__":%s/%d : " fmt , __FUNCTION__, __LINE__, ##args)
index 9d598e3..e0a9c2c 100644 (file)
 #ifdef HAVE_ELEMENTARY_DRM
 #include <Ecore_Drm.h>
 #endif
+#ifdef HAVE_ELEMENTARY_COCOA
+/* Ecore_Cocoa is still in Beta. In Elementary, we know what we are
+ * doing, so let's silent the disclaimer... */
+# ifndef ECORE_COCOA_WIP_GNSIDNQI
+#  define ECORE_COCOA_WIP_GNSIDNQI
+#endif
+# include <Ecore_Cocoa.h>
+#endif
 
 #include <Eio.h>
 
index 3053cf9..661f553 100644 (file)
@@ -13,8 +13,7 @@
 #endif
 
 #ifdef HAVE_ELEMENTARY_COCOA
-#include <Ecore_Cocoa.h>
-#include <Ecore_Cocoa_Cursor.h>
+# include <Ecore_Cocoa_Cursor.h>
 #endif
 
 #define _cursor_key "_elm_cursor"