Differences From Artifact [abc861d5c4]:
- File
src/macros.h
— part of check-in
[8602025532]
at
2013-12-05 21:26:32
on branch trunk
— Check for iOS in configure instead of macros.h.
The initial reason to do this in macros.h was that it would be
theoretically possible to do a universal build targeting OS X and iOS,
but in practice, they are too different as they use a different SDK,
therefore this does not make much sense. (user: js, size: 9431) [annotate] [blame] [check-ins using]
To Artifact [4fb27cba60]:
- File src/macros.h — part of check-in [71ebf4e8fe] at 2013-12-07 16:56:10 on branch trunk — macros.h: Make sure static_assert is defined. (user: js, size: 9612) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
108 109 110 111 112 113 114 115 116 117 118 119 120 121 | #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 @"/" # define OF_IS_PATH_DELIMITER(c) (c == '/') #else # define OF_PATH_DELIMITER '\\' | > > > > > > > > > | 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 | #define OF_ENSURE(cond) \ if (!(cond)) { \ fprintf(stderr, "Failed to ensure condition in " \ __FILE__ ":%d:\n" #cond "\n", __LINE__); \ abort(); \ } #if __STDC_VERSION__ >= 201112L # /* C11 compiler, but old libc */ # ifndef static_assert # define static_assert _Static_assert # endif #else # define static_assert assert #endif #if !defined(_WIN32) && !defined(__DJGPP__) # define OF_PATH_DELIMITER '/' # define OF_PATH_DELIMITER_STRING @"/" # define OF_IS_PATH_DELIMITER(c) (c == '/') #else # define OF_PATH_DELIMITER '\\' |
︙ | ︙ |