-
-
Notifications
You must be signed in to change notification settings - Fork 328
#1420 : add platform definition macros #1422
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
#1420 : add platform definition macros #1422
Conversation
dev/functional/config.h
Outdated
#elif defined(__linux__) | ||
#if defined(__ANDROID__) | ||
#define SQLITE_ORM_ANDROID | ||
#endif | ||
#define SQLITE_ORM_LINUX | ||
#define SQLITE_ORM_UNIX |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
__linux__
should always be defined on android systems so I figured this was safe.
Sorry about the multiple commits in rapid succession there—just a heads up, |
Hey @trueqbit, I've implemented those changes you asked for. |
Thx @ancientjpeg ! |
Resolves #1420.
Notes
SQLITE_ORM_IOS
will be defined for all ofiOS|watchOS|tvOS
which I believe is suitable as they share very similar OS APIs. There should be virtually no difference from the perspective of this library, so it'll be up to users to make those differentiations if they need to.