]> pd.if.org Git - pdclib/blobdiff - platform/example/functions/_PDCLIB/_Exit.c
Joined 32 and 64 bit configurations, made platform linking unnecessary.
[pdclib] / platform / example / functions / _PDCLIB / _Exit.c
index e096e70d56db7a139841b10e36225de1cb0b6a37..a3d20f50c80acd80dba752d6a11e36ca59ad0cd9 100644 (file)
@@ -1,7 +1,3 @@
-/* $Id$ */
-
-/* Release $Name$ */
-
 /* _PDCLIB_exit( int )
 
    This file is part of the Public Domain C Library (PDCLib).
@@ -16,7 +12,8 @@
 
 #ifndef REGTEST
 #include <_PDCLIB_glue.h>
-#include <unistd.h>
+
+extern void _exit( int status ) _PDCLIB_NORETURN;
 
 void _PDCLIB_Exit( int status )
 {
@@ -30,7 +27,11 @@ void _PDCLIB_Exit( int status )
 
 int main( void )
 {
-    TESTCASE( NO_TESTDRIVER );
+#ifndef REGTEST
+    int UNEXPECTED_RETURN = 0;
+    _PDCLIB_Exit( 0 );
+    TESTCASE( UNEXPECTED_RETURN );
+#endif
     return TEST_RESULTS;
 }