]> pd.if.org Git - pdclib.old/blobdiff - platform/example/functions/_PDCLIB/_Exit.c
Merged branch stdio_rewrite back into trunk.
[pdclib.old] / platform / example / functions / _PDCLIB / _Exit.c
index e90dfc6ee7bce4e9272cddaffc5bc6479eddb1e1..5c95fca8c03379452931b1fda5beaa6b9e38afb3 100644 (file)
@@ -14,7 +14,8 @@
 
 #ifndef REGTEST
 #include <_PDCLIB_glue.h>
-#include <unistd.h>
+
+extern void _exit( int status ) _PDCLIB_NORETURN;
 
 void _PDCLIB_Exit( int status )
 {
@@ -24,13 +25,13 @@ void _PDCLIB_Exit( int status )
 #endif
 
 #ifdef TEST
-/* TODO: Work around the following undef */
-#undef SEEK_SET
 #include <_PDCLIB_test.h>
 
 int main( void )
 {
-    TESTCASE( NO_TESTDRIVER );
+    int UNEXPECTED_RETURN = 0;
+    _PDCLIB_Exit( 0 );
+    TESTCASE( UNEXPECTED_RETURN );
     return TEST_RESULTS;
 }