Repository navigation
More bugfixes/improvements - #419
Merged
Merged
Conversation
Signed-off-by: Manuel Lauss <[email protected]>
QUAD_MAX is defined in Apple/xnu's "limits.h" file. Signed-off-by: Manuel Lauss <[email protected]>
…statements Signed-off-by: Manuel Lauss <[email protected]>
Signed-off-by: Manuel Lauss <[email protected]>
Signed-off-by: Manuel Lauss <[email protected]>
Signed-off-by: Manuel Lauss <[email protected]>
On 32bit, the size_t min/max macros conflict with the u32 ones (since size_t is u32 on 32bit). Change the type from 'size_t' to 'u64' which is the correct type on 64bit. Fixes build for 32bit platforms. Signed-off-by: Manuel Lauss <[email protected]>
MacOS syslimits.h defines a LINE_MAX macro which collides with the LINE_MAX defined in lineDraw2d.
Open
|
Definitely get much further with this PR on Mac, sent a minor PR to your original branch for CMakeLists to at least get the build going on Mac |
On 64bit windows and linux, size_t is equal to an u64. However, Apple toolchains seem to treat it as a distinct type, and fail to find a specialization for FileStream::read()/::write(). By setting these types explicitly to u64, - we do not break existing savegames on 64bit Windows/Linux - also make savegames from 32bit builds compatible (but break existing ones, but I doubt that these exist).
- unify apple and linux under UNIX, but keep the linux-specific things under LINUX - Drop Threads and OpenGL package requirements: Every modern UNIX OS has Threads; OpenGL is provided by GLEW. - use the cmake "components" feature for SDL2 and SDL2_Image
because it doesn't work with github's runner.
audio: autoselect -> System Default system midi: disabled -> "Disabled: reason" Signed-off-by: Manuel Lauss <[email protected]>
mlauss2
marked this pull request as ready for review
July 13, 2024 14:02
luciusDXL
approved these changes
Jul 14, 2024
luciusDXL
left a comment
Collaborator
There was a problem hiding this comment.
Looks good, thanks for all of the improvements.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
More bug/warningfixes and updates, also to get it building on Apple/Clang toolchains. based on feedback in #90