Skip to content

#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

Merged

Conversation

ancientjpeg
Copy link

Resolves #1420.

Notes

  • I added the VfxWorks platform detection as SQLite supports it and has distinct VFS objects specifically for that operating system. I copied their platform detection logic for it
  • SQLITE_ORM_IOS will be defined for all of iOS|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.

Comment on lines 88 to 93
#elif defined(__linux__)
#if defined(__ANDROID__)
#define SQLITE_ORM_ANDROID
#endif
#define SQLITE_ORM_LINUX
#define SQLITE_ORM_UNIX
Copy link
Author

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.

@ancientjpeg
Copy link
Author

Sorry about the multiple commits in rapid succession there—just a heads up, clang-format version 20 appears to be ignoring a rule about spacing the & symbol after a declaration.

@ancientjpeg ancientjpeg requested a review from trueqbit April 17, 2025 23:15
@ancientjpeg
Copy link
Author

Hey @trueqbit, I've implemented those changes you asked for.

@trueqbit trueqbit linked an issue Apr 24, 2025 that may be closed by this pull request
@trueqbit trueqbit merged commit 773f4d0 into fnc12:dev Apr 25, 2025
2 checks passed
@trueqbit
Copy link
Collaborator

Thx @ancientjpeg !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add platform definition macros
3 participants