Skip to content

Commit

Permalink
TargetConditionals: add TARGET_OS_OSX if needed
Browse files Browse the repository at this point in the history
  • Loading branch information
kencu committed Apr 3, 2021
1 parent 333bb8f commit 4b7d77b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,8 @@ Wrapped headers and replaced functions are:
</tr>
<tr>
<td><code>TargetConditionals.h</code></td>
<td>Adds definition for <code>TARGET_OS_SIMULATOR</code> if needed.</td>
<td>Adds definition for <code>TARGET_OS_SIMULATOR</code> and
<code>TARGET_OS_OSX</code> if needed.</td>
<td>OSX10.10</td>
</tr>
</table>
Expand Down
4 changes: 4 additions & 0 deletions include/TargetConditionals.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,7 @@
#ifndef TARGET_OS_SIMULATOR
# define TARGET_OS_SIMULATOR 0
#endif

#ifndef TARGET_OS_OSX
# define TARGET_OS_OSX 1
#endif

0 comments on commit 4b7d77b

Please sign in to comment.