Some fixes for Linux compatibility.
This commit is contained in:
parent
2650f76826
commit
4540a8a1b9
1 changed files with 5 additions and 0 deletions
|
@ -36,7 +36,12 @@ int main(int argc, char *argv[]) {
|
||||||
|
|
||||||
const Uint32 startTicks = SDL_GetTicks();
|
const Uint32 startTicks = SDL_GetTicks();
|
||||||
|
|
||||||
|
#if defined(linux) || defined( __linux)
|
||||||
|
char *libName = "tests/libtest.so";
|
||||||
|
#else
|
||||||
char *libName = "tests/libtest.0.dylib";
|
char *libName = "tests/libtest.0.dylib";
|
||||||
|
#endif
|
||||||
|
|
||||||
void *library = SDL_LoadObject(libName);
|
void *library = SDL_LoadObject(libName);
|
||||||
if(library == NULL) {
|
if(library == NULL) {
|
||||||
printf("Loading %s failed\n", libName);
|
printf("Loading %s failed\n", libName);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue