Skip to content

Commit 73315ee

Browse files
authored
Merge pull request #218 from apple/das-api-availability-build-fix
provide fallback definitions for all API_* macros
2 parents de97ea7 + 6b22376 commit 73315ee

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

dispatch/dispatch.h

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,20 @@
2424
#ifdef __APPLE__
2525
#include <Availability.h>
2626
#include <TargetConditionals.h>
27-
#endif
28-
27+
#else
2928
#ifndef API_AVAILABLE
3029
#define API_AVAILABLE(...)
30+
#endif
31+
#ifndef API_DEPRECATED
3132
#define API_DEPRECATED(...)
33+
#endif
34+
#ifndef API_UNAVAILABLE
3235
#define API_UNAVAILABLE(...)
36+
#endif
37+
#ifndef API_DEPRECATED_WITH_REPLACEMENT
3338
#define API_DEPRECATED_WITH_REPLACEMENT(...)
34-
#endif // !API_AVAILABLE
39+
#endif
40+
#endif // __APPLE__
3541

3642
#include <sys/cdefs.h>
3743
#include <sys/types.h>

0 commit comments

Comments
 (0)