2025-07-17 14:36 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0006026Spring engineLinuxpublic2018-09-22 17:26
Reporterhoijui 
Assigned ToKloot 
PrioritynormalSeverityblockReproducibilityalways
StatusresolvedResolutionfixed 
Product Version104.0 +git 
Target VersionFixed in Version104.0 +git 
Summary0006026: double SDL include
Descriptionon latest springrts git (104.0.1-1022-gfb81c05c1), on a fresh compile with CMake from scratch on my Debian testing, i get lots of errors because of two times included SDL headers, excerpt here:

/home/user/src/spring/include/SDL2/SDL_stdinc.h:118:17: error: redeclaration of ‘SDL_FALSE’
     SDL_FALSE = 0,
                 ^
In file included from /usr/include/SDL2/SDL_mouse.h:31:0,
                 from /home/user/src/spring/rts/Game/InMapDraw.cpp:3:
/usr/include/SDL2/SDL_stdinc.h:141:5: note: previous declaration ‘SDL_bool SDL_FALSE’
     SDL_FALSE = 0,
     ^~~~~~~~~

looks like it includes SDL once from spring sources and once from the system.
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
+Relationships

-Notes

~0019281

abma (administrator)

did the headguards change in a system installed SDL2?

https://github.com/spring/spring/blob/develop/include/SDL2/SDL_stdinc.h#L29

#define _SDL_stdinc_h

(still the cmake needs to be cleaned up so only on include path is used)
+Notes

-Issue History
Date Modified Username Field Change
2018-08-08 07:55 hoijui New Issue
2018-08-09 10:53 abma Note Added: 0019281
2018-09-22 17:26 Kloot Assigned To => Kloot
2018-09-22 17:26 Kloot Status new => resolved
2018-09-22 17:26 Kloot Resolution open => fixed
2018-09-22 17:26 Kloot Fixed in Version => 104.0 +git
+Issue History