ecore_cocoa: prevent Ecore_Cocoa_Window to be re-defined
authorJean Guyomarc'h <jean.guyomarch@openwide.fr>
Wed, 14 Oct 2015 07:08:38 +0000 (09:08 +0200)
committerCedric BAIL <cedric@osg.samsung.com>
Tue, 1 Dec 2015 20:15:32 +0000 (12:15 -0800)
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
src/lib/ecore_cocoa/Ecore_Cocoa.h
src/lib/ecore_evas/Ecore_Evas_Types.h

index 27ae045..106b347 100644 (file)
@@ -43,7 +43,9 @@ extern "C" {
  * @typedef Ecore_Cocoa_Window
  * Opaque handler to manipulate a Cocoa Window through Ecore
  */
+#ifndef _ECORE_COCOA_WINDOW_PREDEF
 typedef struct _Ecore_Cocoa_Window Ecore_Cocoa_Window;
+#endif /* ! _ECORE_COCOA_WINDOW_PREDEF */
 
 /**
  * @typedef Ecore_Cocoa_Screen
index eea8aa7..08d6d58 100644 (file)
@@ -33,6 +33,7 @@ typedef struct _Ecore_WinCE_Window Ecore_WinCE_Window;
 #endif
 
 #ifndef __ECORE_COCOA_H__
+# define _ECORE_COCOA_WINDOW_PREDEF
 typedef struct _Ecore_Cocoa_Window Ecore_Cocoa_Window;
 #endif