Skip to content
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

Conditional compilation of PLATFORM_DESKTOP segments should also apply to PLATFORM_DESKTOP_LINUX segments #6

Closed

Conversation

debiatan
Copy link
Contributor

@debiatan debiatan commented Nov 9, 2014

While checking the correctness of my last pull request, I had a version of libraysan.a compiled using -DPLATFORM_DESKTOP, which turned out to build correctly every example. However, I failed to notice that using -DPLATFORM_DESKTOP_LINUX excludes several raylib functions from the library. This pull request should fix that.

As a matter of style, I'm beginning to feel that preprocessing directives such as

#if defined(PLATFORM_DESKTOP) || defined(PLATFORM_RPI) || defined(PLATFORM_DESKTOP_LINUX)

are starting to get a bit unwieldy, but I'm sticking to the overall coding style of libraysan. Maybe a shared PLATFORM_DESKTOP definition and separate DESKTOP_WINDOWS and DESKTOP_LINUX definitions would turn out to be more readable, but then again, maybe not.

Cheers!

@debiatan debiatan closed this Dec 13, 2014
raysan5 pushed a commit that referenced this pull request Sep 22, 2018
Linux Support for VSCode Project
michaelfiber referenced this pull request in michaelfiber/raylib Sep 21, 2023
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.

2 participants