Skip to content
Snippets Groups Projects
Commit 3af1fe56 authored by Francisco Acosta's avatar Francisco Acosta Committed by GitHub
Browse files

Merge pull request #7134 from smlng/macos/fix/posix/clockid_t

posix: fix redefined clockid_t on macOS
parents 58067bd4 16bd7db5
Branches
No related tags found
No related merge requests found
......@@ -25,7 +25,12 @@
# include "msp430_types.h"
#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;
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment