]> pd.if.org Git - pdclib/blobdiff - platform/example/functions/_PDCLIB/_Exit.c
Whitespace cleanups.
[pdclib] / platform / example / functions / _PDCLIB / _Exit.c
index c3ecfbc373b26718be4d43024f17aedb801d9c3e..ed019ae9f12b5f78faf4fbef959dbf41523f804b 100644 (file)
@@ -1,5 +1,3 @@
-/* $Id$ */
-
 /* _PDCLIB_exit( int )
 
    This file is part of the Public Domain C Library (PDCLib).
 #include <stdlib.h>
 
 #ifndef REGTEST
-#include <_PDCLIB_glue.h>
-#include <unistd.h>
+
+#include "_PDCLIB_glue.h"
+
+extern void _exit( int status ) _PDCLIB_NORETURN;
 
 void _PDCLIB_Exit( int status )
 {
@@ -24,15 +24,16 @@ void _PDCLIB_Exit( int status )
 #endif
 
 #ifdef TEST
-/* TODO: Work around the following undef */
-#undef SEEK_SET
-#include <_PDCLIB_test.h>
+
+#include "_PDCLIB_test.h"
 
 int main( void )
 {
+#ifndef REGTEST
     int UNEXPECTED_RETURN = 0;
     _PDCLIB_Exit( 0 );
     TESTCASE( UNEXPECTED_RETURN );
+#endif
     return TEST_RESULTS;
 }