- updated windows build for sdl2

This commit is contained in:
SoftCoder
2015-10-17 17:58:25 -07:00
parent c402509853
commit 92aa2a7e04
8 changed files with 33 additions and 27 deletions

View File

@@ -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