mirror of
https://github.com/glest/glest-source.git
synced 2025-08-24 00:42:50 +02:00
- updated windows build for sdl2
This commit is contained in:
@@ -32,7 +32,11 @@ namespace ImageRegisterer {
|
||||
bool registerImageReaders();
|
||||
|
||||
//Since you can't call void methods here, I have used a method doing nothing except initializing the image Readers
|
||||
#ifdef WIN32
|
||||
static bool readersRegistered = registerImageReaders(); //should always return true, this should guarantee that the readers are registered <--> ImageReaders is included anywhere
|
||||
#else
|
||||
static bool readersRegistered __attribute__((unused)) = registerImageReaders(); //should always return true, this should guarantee that the readers are registered <--> ImageReaders is included anywhere
|
||||
#endif
|
||||
}
|
||||
|
||||
}} //end namespace
|
||||
|
Reference in New Issue
Block a user