1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
/*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
#ifndef _ORG_JITSI_WINDOWS_SETUP_POSIXCOMPATIBILITY_H_
#define _ORG_JITSI_WINDOWS_SETUP_POSIXCOMPATIBILITY_H_
typedef unsigned char u_char;
#define close(fd) \
_close(fd)
#define fopen(path, mode) \
fopen(path, mode "b")
#define fseeko(stream, offset, whence) \
fseek(stream, offset, whence)
#define lseek(fd, offset, whence) \
_lseek(fd, offset, whence)
#define open(pathname, flags, mode) \
_open(pathname, _O_BINARY | flags, mode)
#define read(fd, buf, count) \
_read(fd, buf, count)
#define write(fd, buf, count) \
_write(fd, buf, count)
#endif /* #ifndef _ORG_JITSI_WINDOWS_SETUP_POSIXCOMPATIBILITY_H_ */
|