jpeg pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=2cf3a9d2bef9872181c144e60a0d33c2833af015

commit 2cf3a9d2bef9872181c144e60a0d33c2833af015
Author: Vincent Torri <vincent dot torri at gmail dot com>
Date:   Thu Dec 10 16:06:22 2015 +0900

    Fix compilation on Windows (and propably also on Mac)
    
    Reviewers: cedric
    
    Differential Revision: https://phab.enlightenment.org/D3419
---
 src/lib/elm_win.c    | 16 ++++++++--------
 src/lib/els_cursor.c |  5 +++--
 2 files changed, 11 insertions(+), 10 deletions(-)

diff --git a/src/lib/elm_win.c b/src/lib/elm_win.c
index 1f982c8..b9fb0cf 100644
--- a/src/lib/elm_win.c
+++ b/src/lib/elm_win.c
@@ -2197,11 +2197,9 @@ _elm_ee_cocoa_win_get(const Ecore_Evas *ee)
    engine_name = ecore_evas_engine_name_get(ee);
    if (EINA_UNLIKELY(!engine_name)) return NULL;
 
-   if ((!strcmp(engine_name, ELM_SOFTWARE_WIN32)) ||
-       (!strcmp(engine_name, ELM_SOFTWARE_DDRAW)))
-     {
-        return ecore_evas_win32_window_get(ee);
-     }
+   if (!strcmp(engine_name, "opengl_cocoa") ||
+       !strcmp(engine_name, "gl_cocoa"))
+     return ecore_evas_cocoa_window_get(ee);
 #else
    (void)ee;
 #endif
@@ -2219,9 +2217,11 @@ _elm_ee_win32win_get(const Ecore_Evas *ee)
    engine_name = ecore_evas_engine_name_get(ee);
    if (EINA_UNLIKELY(!engine_name)) return NULL;
 
-   if (!strcmp(engine_name, "opengl_cocoa") ||
-       !strcmp(engine_name, "gl_cocoa"))
-     return ecore_evas_cocoa_window_get(ee);
+   if ((!strcmp(engine_name, ELM_SOFTWARE_WIN32)) ||
+       (!strcmp(engine_name, ELM_SOFTWARE_DDRAW)))
+     {
+        return ecore_evas_win32_window_get(ee);
+     }
 #else
    (void)ee;
 #endif
diff --git a/src/lib/els_cursor.c b/src/lib/els_cursor.c
index 6800554..3b26209 100644
--- a/src/lib/els_cursor.c
+++ b/src/lib/els_cursor.c
@@ -15,6 +15,7 @@
 #ifdef HAVE_ELEMENTARY_COCOA
 # include <Ecore_Cocoa_Cursor.h>
 #endif
+
 #ifdef HAVE_ELEMENTARY_WIN32
 #include <Ecore_Win32.h>
 #endif
@@ -40,7 +41,7 @@ struct _Cursor_Id
 #elif defined(HAVE_ELEMENTARY_COCOA)
 #  define CURSOR(_name, _id, _cid) {_name, -1, _cid}
 #elif defined(HAVE_ELEMENTARY_WIN32)
-#  define CURSOR(_name, _id, _cid) {_name, 
ECORE_WIN32_CURSOR_X11_SHAPE_##_xid, -1 }
+#  define CURSOR(_name, _id, _cid) {_name, ECORE_WIN32_CURSOR_X11_SHAPE_##_id, 
-1 }
 #else
 #  define CURSOR(_name, _id, _cid) { _name }
 #endif
@@ -505,7 +506,7 @@ _elm_cursor_cur_set(Elm_Cursor *cur)
                        cur->win32.cursor = 
ecore_win32_cursor_shaped_new(ECORE_WIN32_CURSOR_SHAPE_ARROW);
                     }
                   else
-                    cur->win32.cursor = 
ecore_win32_cursor_x11_shaped_get(cur_id->id);
+                    cur->win32.cursor = (Ecore_Win32_Cursor 
*)ecore_win32_cursor_x11_shaped_get(cur_id->id);
                }
 #endif
           }

-- 


Reply via email to