Skip to content

Swift 3.1: provide fallback definitions for all API_* macros #219

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 22, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions dispatch/dispatch.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,20 @@
#ifdef __APPLE__
#include <Availability.h>
#include <TargetConditionals.h>
#endif

#else
#ifndef API_AVAILABLE
#define API_AVAILABLE(...)
#endif
#ifndef API_DEPRECATED
#define API_DEPRECATED(...)
#endif
#ifndef API_UNAVAILABLE
#define API_UNAVAILABLE(...)
#endif
#ifndef API_DEPRECATED_WITH_REPLACEMENT
#define API_DEPRECATED_WITH_REPLACEMENT(...)
#endif // !API_AVAILABLE
#endif
#endif // __APPLE__

#include <sys/cdefs.h>
#include <sys/types.h>
Expand Down