summaryrefslogtreecommitdiff
path: root/test/cairo-test-runner.c
diff options
context:
space:
mode:
authorPaolo Bonzini <bonzini@gnu.org>2008-11-26 13:32:11 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2008-11-26 16:15:35 +0000
commit993941cfd701eb222b81cdddeabf6f7ff2daa150 (patch)
tree8ceb899a5b0bf5c902b885ed52083939194cb07a /test/cairo-test-runner.c
parent8a5b55ca6c69671a138f65ab15bcf93163f24a37 (diff)
downloadcairo-993941cfd701eb222b81cdddeabf6f7ff2daa150.tar.gz
[perf] Fix SDL compilation for MacOS X
The attached patch makes the SDL tests compile under Mac OS X. The problem is: 1) that <SDL_main.h> should be included in files that define the main function for SDL Mac OS X programs (this is not true with the upcoming SDL 1.3 release). 2) that -lSDLmain, because it is statically linked, needs the Cocoa framework in the LDADD of the main program. Again, 1.3 will not require this.
Diffstat (limited to 'test/cairo-test-runner.c')
-rw-r--r--test/cairo-test-runner.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/cairo-test-runner.c b/test/cairo-test-runner.c
index 4fb0cbea0..aec90ff70 100644
--- a/test/cairo-test-runner.c
+++ b/test/cairo-test-runner.c
@@ -33,6 +33,10 @@
#undef CAIRO_VERSION_MICRO
#include "../cairo-version.h"
+#if CAIRO_HAS_SDL_SURFACE
+#include <SDL_main.h>
+#endif
+
#include <pixman.h> /* for version information */
#if HAVE_FORK && HAVE_WAITPID