diff test/automated/platform/platform.c @ 3740:e451d5d288e9 gsoc2009_unit_tests

Merged into one big app, while keeping modular applications also.
author Edgar Simo <bobbens@gmail.com>
date Sun, 02 Aug 2009 16:01:23 +0000
parents 78f544eded7b
children 808fad5fb593
line wrap: on
line diff
--- a/test/automated/platform/platform.c	Sun Aug 02 15:49:55 2009 +0000
+++ b/test/automated/platform/platform.c	Sun Aug 02 16:01:23 2009 +0000
@@ -131,10 +131,18 @@
 }
 
 
-int main(int argc, char *argv[])
+/**
+ * @brief Platform test entrypoint.
+ */
+#ifdef TEST_STANDALONE
+int main( int argc, const char *argv[] )
 {
    (void) argc;
    (void) argv;
+#else /* TEST_STANDALONE */
+int test_platform (void)
+{
+#endif /* TEST_STANDALONE */
 
    SDL_ATinit( "Platform" );