Skip to content

inclusion of intrinsics headers in SDL_cpuinfo.h makes it impossible to use SDL2 with alternative compilers #4729

@rofl0r

Description

@rofl0r

i'd like to compile my SDL2-using projects with alternative C compilers, such as tcc or cproc for faster compilation speed (or to check for GNUisms) while developing, however all of them bail out failing to parse GCC's intrinsics headers which are unconditionally included.

after some discussion with fellow compiler authors and linux distribution packagers we all agreed that SDL shouldn't include the intrinsics headers from a public, but only from a private header for internal use (i.e. during compile of SDL2 itself).

alternatively, the inclusion of all of the intrinsics headers could be shielded by some preprocessor macro such as SDL_INTERNAL which is defined during the build using the build system but not in SDL's headers themselves.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions