X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=platform%2Fexample%2Ffunctions%2F_PDCLIB%2F_Exit.c;h=ed019ae9f12b5f78faf4fbef959dbf41523f804b;hb=d865c4403fc91d1f1ac95ba76febcee9f429bb97;hp=e90dfc6ee7bce4e9272cddaffc5bc6479eddb1e1;hpb=05c4ae55c5ed3a2a4e877a723e58e7ffc92110d4;p=pdclib diff --git a/platform/example/functions/_PDCLIB/_Exit.c b/platform/example/functions/_PDCLIB/_Exit.c index e90dfc6..ed019ae 100644 --- a/platform/example/functions/_PDCLIB/_Exit.c +++ b/platform/example/functions/_PDCLIB/_Exit.c @@ -1,5 +1,3 @@ -/* $Id$ */ - /* _PDCLIB_exit( int ) This file is part of the Public Domain C Library (PDCLib). @@ -13,8 +11,10 @@ #include #ifndef REGTEST -#include <_PDCLIB_glue.h> -#include + +#include "_PDCLIB_glue.h" + +extern void _exit( int status ) _PDCLIB_NORETURN; void _PDCLIB_Exit( int status ) { @@ -24,13 +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 ) { - TESTCASE( NO_TESTDRIVER ); +#ifndef REGTEST + int UNEXPECTED_RETURN = 0; + _PDCLIB_Exit( 0 ); + TESTCASE( UNEXPECTED_RETURN ); +#endif return TEST_RESULTS; }