Some fixes for Linux compatibility.
authorMarkus Kauppila <markus.kauppila@gmail.com>
Wed, 25 May 2011 09:45:03 -0700
changeset 5666 8feff411cc08
parent 5665 7bb881335c4c
child 5667 4c0d0d32414c
Some fixes for Linux compatibility.
test/test-automation/runner.c
--- a/test/test-automation/runner.c	Wed May 25 19:02:43 2011 +0300
+++ b/test/test-automation/runner.c	Wed May 25 09:45:03 2011 -0700
@@ -36,7 +36,12 @@
 
 	const Uint32 startTicks = SDL_GetTicks();
 
+#if defined(linux) || defined( __linux)
+	char *libName = "tests/libtest.so";
+#else 
 	char *libName = "tests/libtest.0.dylib";
+#endif
+
 	void *library = SDL_LoadObject(libName);
 	if(library == NULL) {
 		printf("Loading %s failed\n", libName);