summaryrefslogtreecommitdiff
path: root/src/lib/ecore
diff options
context:
space:
mode:
authorCedric Bail <cedric.bail@free.fr>2013-03-18 23:38:01 +0100
committerCedric BAIL <cedric.bail@samsung.com>2013-03-19 15:15:37 +0900
commitb6318788216cda81f13cbba8de3f2606bf90b1d0 (patch)
treea2e921bcd78aaf788218b3eddaa6c96f44688b19 /src/lib/ecore
parent5f2ec224e9603770b05e594c73877eaf2cc94b82 (diff)
ecore: fix overflow on Windows 64 bits.
Diffstat (limited to 'src/lib/ecore')
-rw-r--r--src/lib/ecore/ecore_pipe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ecore/ecore_pipe.c b/src/lib/ecore/ecore_pipe.c
index 09b18daeda..6e89fa8917 100644
--- a/src/lib/ecore/ecore_pipe.c
+++ b/src/lib/ecore/ecore_pipe.c
@@ -53,6 +53,8 @@
53 * code is in Evil and not here. 53 * code is in Evil and not here.
54 */ 54 */
55 55
56#define PIPE_FD_INVALID -1
57
56#ifdef _WIN32 58#ifdef _WIN32
57 59
58# include <winsock2.h> 60# include <winsock2.h>
@@ -60,7 +62,6 @@
60# define pipe_write(fd, buffer, size) send((fd), (char *)(buffer), size, 0) 62# define pipe_write(fd, buffer, size) send((fd), (char *)(buffer), size, 0)
61# define pipe_read(fd, buffer, size) recv((fd), (char *)(buffer), size, 0) 63# define pipe_read(fd, buffer, size) recv((fd), (char *)(buffer), size, 0)
62# define pipe_close(fd) closesocket(fd) 64# define pipe_close(fd) closesocket(fd)
63# define PIPE_FD_INVALID INVALID_SOCKET
64# define PIPE_FD_ERROR SOCKET_ERROR 65# define PIPE_FD_ERROR SOCKET_ERROR
65 66
66#else 67#else
@@ -71,7 +72,6 @@
71# define pipe_write(fd, buffer, size) write((fd), buffer, size) 72# define pipe_write(fd, buffer, size) write((fd), buffer, size)
72# define pipe_read(fd, buffer, size) read((fd), buffer, size) 73# define pipe_read(fd, buffer, size) read((fd), buffer, size)
73# define pipe_close(fd) close(fd) 74# define pipe_close(fd) close(fd)
74# define PIPE_FD_INVALID -1
75# define PIPE_FD_ERROR -1 75# define PIPE_FD_ERROR -1
76 76
77#endif /* ! _WIN32 */ 77#endif /* ! _WIN32 */