ObjFW  Check-in [5dc16f28aa]

Overview
Comment:Add a few defines that Win32 needs.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 5dc16f28aa634795f0d985f2910bd6e40f04e1587d285b40f5e3a7a9e8b8da81
User & Date: js on 2010-04-10 21:35:15
Other Links: manifest | tags
Context
2010-04-10
21:37
Don't set errno in sockets on Win32. check-in: 1e35805366 user: js tags: trunk
21:35
Add a few defines that Win32 needs. check-in: 5dc16f28aa user: js tags: trunk
21:29
Greatly improve OFThread.
This fixes a lot of issues that happened in the real world.
check-in: ea96fd1e24 user: js tags: trunk
Changes

Modified src/OFFile.m from [a4ba59f372] to [112f36f53a].

26
27
28
29
30
31
32







33
34
35
36
37
38
39
#ifdef _WIN32
# import <windows.h>
#endif

#ifndef O_BINARY
# define O_BINARY 0
#endif








#define DEFAULT_MODE S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH

OFFile *of_stdin = nil;
OFFile *of_stdout = nil;
OFFile *of_stderr = nil;








>
>
>
>
>
>
>







26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#ifdef _WIN32
# import <windows.h>
#endif

#ifndef O_BINARY
# define O_BINARY 0
#endif

#ifndef S_IRGRP
# define S_IRGRP 0
#endif
#ifndef S_IROTH
# define S_IROTH 0
#endif

#define DEFAULT_MODE S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH

OFFile *of_stdin = nil;
OFFile *of_stdout = nil;
OFFile *of_stderr = nil;