Skip to content

Conversation

foxtran
Copy link
Contributor

@foxtran foxtran commented Sep 25, 2025

Here, I've replaced almost all iso_c_binding with sdl2_c_types module that provides all necessary types. Now, they are used with only (checked with -Wuse-without-only).

In many modules, I've add default private visibility of those modules' entities.

src/c_util.F90 was moved to src/sdl2/sdl2_c_types.F90. Now, it can enable unsigned support once one provide -DHAS_UNSIGNED flag. It should help to work with -funsigned flags for Flang and GCC.

Note: I did not tests examples. All changes were made in -fsyntax-only mode since I do not have SDL2

@interkosmos
Copy link
Owner

Thank you for your efforts. I’ll test it in the next days and get back to you.

@interkosmos interkosmos merged commit a0f3415 into interkosmos:master Sep 28, 2025
0 of 6 checks passed
@toxtran
Copy link

toxtran commented Sep 28, 2025

WTF?! None of tests were passed...

@toxtran
Copy link

toxtran commented Sep 28, 2025

Why did you merge?

@interkosmos
Copy link
Owner

Sorry, I was just lazy. I’ve refactored it and then tested with gfortran 14, gfortran 15, and flang 20. LGTM.

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.

3 participants