Skip to content

Fix LogDefault output on mingw #757

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 2 commits into from
Apr 17, 2025

Conversation

trexxet
Copy link
Contributor

@trexxet trexxet commented Apr 17, 2025

Current implementation for win32 won't produce any console output on mingw. fprintf works fine.

@@ -37,7 +37,7 @@

namespace Rml {

#ifdef RMLUI_PLATFORM_WIN32
#if defined(RMLUI_PLATFORM_WIN32) && !defined(__MINGW32__)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, and thanks for the pull request! I believe this condition should match the one for the includes above. Perhaps make a new definition with the conditions, to avoid repeating them in both places?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, I've added a RMLUI_PLATFORM_WIN32_NATIVE macro and applied it to similar cases

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks!

Provides windows platform define with the exclusion of mingw
@mikke89 mikke89 merged commit b1541f5 into mikke89:master Apr 17, 2025
32 checks passed
@mikke89 mikke89 added the build Build system and compilation label Apr 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Build system and compilation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants