Skip to content
Snippets Groups Projects
Commit 16bd7db5 authored by Sebastian Meiling's avatar Sebastian Meiling
Browse files

posix: fix redefined clockid_t on macOS

parent 0150cfc1
Branches
No related tags found
No related merge requests found
...@@ -25,7 +25,12 @@ ...@@ -25,7 +25,12 @@
# include "msp430_types.h" # include "msp430_types.h"
#endif #endif
#if defined(__MACH__) || defined(__WITH_AVRLIBC__) #ifdef __MACH__
/* needed for AVAILABLE_MAC_OS_X_VERSION_10_12_AND_LATER */
#include <AvailabilityMacros.h>
#endif
#if defined(__WITH_AVRLIBC__) || (defined(__MACH__) && !defined(AVAILABLE_MAC_OS_X_VERSION_10_12_AND_LATER))
typedef int clockid_t; typedef int clockid_t;
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment