Differences From Artifact [1065db52e2]:
- File
src/macros.h
— part of check-in
[bd2389b6b8]
at
2013-11-30 19:53:16
on branch trunk
— OFThread.m: Move #ifdefs.
The reason is that the symbol nanosleep is available now on Win32, but
is part of the pthreads wrapper, which we don't use. (user: js, size: 9512) [annotate] [blame] [check-ins using]
To Artifact [dcc14d0966]:
- File
src/macros.h
— part of check-in
[a0b63a8df4]
at
2013-12-01 02:08:43
on branch trunk
— Port to DOS/DJGPP.
The port was much easier than expected. The only changes that were
required were defining the missing lrint() and useconds_t, the rest was
optional (like using backslashes for paths, even though slashes work
fine). (user: js, size: 9541) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
109 110 111 112 113 114 115 | #define OF_ENSURE(cond) \ if (!(cond)) { \ fprintf(stderr, "Failed to ensure condition in " \ __FILE__ ":%d:\n" #cond "\n", __LINE__); \ abort(); \ } | | | 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 | #define OF_ENSURE(cond) \ if (!(cond)) { \ fprintf(stderr, "Failed to ensure condition in " \ __FILE__ ":%d:\n" #cond "\n", __LINE__); \ abort(); \ } #if !defined(_WIN32) && !defined(__DJGPP__) # define OF_PATH_DELIMITER '/' # define OF_PATH_DELIMITER_STRING @"/" #else # define OF_PATH_DELIMITER '\\' # define OF_PATH_DELIMITER_STRING @"\\" #endif #define OF_PATH_CURRENT_DIRECTORY @"." |
︙ | ︙ |