/* The result tells us the type of event we have. */
if (result == WAIT_FAILED)
{
- char *msg;
+ char *m;
- msg = evil_last_error_get();
- ERR(" * %s\n", msg);
- free(msg);
+ m = evil_last_error_get();
+ ERR(" * %s\n", m);
+ free(m);
res = -1;
}
else if (result == WAIT_TIMEOUT)
#include "Ecore.h"
#include "ecore_private.h"
+#ifdef _WIN32
+# define FMT_SSIZE_T "%Id"
+#else
+# define FMT_SSIZE_T "%zd"
+#endif
+
/* How of then we should retry to write to the pipe */
#define ECORE_PIPE_WRITE_RETRY 6
;
else
{
- ERR("An unhandled error (ret: %zd errno: %d)"
+ ERR("An unhandled error (ret: " FMT_SSIZE_T " errno: %d)"
"occurred while writing to the pipe the length",
ret, errno);
}
;
else
{
- ERR("An unhandled error (ret: %zd errno: %d)"
+ ERR("An unhandled error (ret: " FMT_SSIZE_T " errno: %d)"
"occurred while writing to the pipe the length",
ret, errno);
}
Ecore_Win32_Event_Window_Focus_In *e;
e = event;
- ee = ecore_event_window_match(e->window);
+ ee = ecore_event_window_match((Ecore_Window)e->window);
if ((!ee) || (ee->ignore_events)) return ECORE_CALLBACK_PASS_ON;
- if (e->window != ee->prop.window) return ECORE_CALLBACK_PASS_ON;
+ if ((Ecore_Window)e->window != ee->prop.window) return ECORE_CALLBACK_PASS_ON;
ee->prop.focused = 1;
evas_focus_in(ee->evas);
Ecore_Win32_Event_Window_Focus_Out *e;
e = event;
- ee = ecore_event_window_match(e->window);
+ ee = ecore_event_window_match((Ecore_Window)e->window);
if ((!ee) || (ee->ignore_events)) return ECORE_CALLBACK_PASS_ON;
- if (e->window != ee->prop.window) return ECORE_CALLBACK_PASS_ON;
+ if ((Ecore_Window)e->window != ee->prop.window) return ECORE_CALLBACK_PASS_ON;
evas_focus_out(ee->evas);
ee->prop.focused = 0;
# include <libgen.h>
#endif
+#ifdef _WIN32
+# include <direct.h>
+#endif
+
#ifdef HAVE_FEATURES_H
# include <features.h>
#endif