summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean Guyomarc'h <jean.guyomarch@openwide.fr>2015-10-14 09:08:38 +0200
committerNicolas Aguirre <aguirre.nicolas@gmail.com>2015-11-10 08:32:49 +0100
commit1f1afce94e8079d8d326df57d205fd7f9585b802 (patch)
treed3e259b5548735c56cb5a5f240f748585b281df2
parent70ad7994a8728446856b6e86c3e24576e9c9a64d (diff)
ecore_cocoa: prevent Ecore_Cocoa_Window to be re-defined
-rw-r--r--src/lib/ecore_cocoa/Ecore_Cocoa.h2
-rw-r--r--src/lib/ecore_evas/Ecore_Evas_Types.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/ecore_cocoa/Ecore_Cocoa.h b/src/lib/ecore_cocoa/Ecore_Cocoa.h
index 27ae045a38..106b34788a 100644
--- a/src/lib/ecore_cocoa/Ecore_Cocoa.h
+++ b/src/lib/ecore_cocoa/Ecore_Cocoa.h
@@ -43,7 +43,9 @@ extern "C" {
43 * @typedef Ecore_Cocoa_Window 43 * @typedef Ecore_Cocoa_Window
44 * Opaque handler to manipulate a Cocoa Window through Ecore 44 * Opaque handler to manipulate a Cocoa Window through Ecore
45 */ 45 */
46#ifndef _ECORE_COCOA_WINDOW_PREDEF
46typedef struct _Ecore_Cocoa_Window Ecore_Cocoa_Window; 47typedef struct _Ecore_Cocoa_Window Ecore_Cocoa_Window;
48#endif /* ! _ECORE_COCOA_WINDOW_PREDEF */
47 49
48/** 50/**
49 * @typedef Ecore_Cocoa_Screen 51 * @typedef Ecore_Cocoa_Screen
diff --git a/src/lib/ecore_evas/Ecore_Evas_Types.h b/src/lib/ecore_evas/Ecore_Evas_Types.h
index eea8aa741c..08d6d582d0 100644
--- a/src/lib/ecore_evas/Ecore_Evas_Types.h
+++ b/src/lib/ecore_evas/Ecore_Evas_Types.h
@@ -33,6 +33,7 @@ typedef struct _Ecore_WinCE_Window Ecore_WinCE_Window;
33#endif 33#endif
34 34
35#ifndef __ECORE_COCOA_H__ 35#ifndef __ECORE_COCOA_H__
36# define _ECORE_COCOA_WINDOW_PREDEF
36typedef struct _Ecore_Cocoa_Window Ecore_Cocoa_Window; 37typedef struct _Ecore_Cocoa_Window Ecore_Cocoa_Window;
37#endif 38#endif
38 39