X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;ds=sidebyside;f=platform%2Fexample%2Ffunctions%2F_PDCLIB%2F_Exit.c;h=a3d20f50c80acd80dba752d6a11e36ca59ad0cd9;hb=2b793d7f6e3a8e37229e761ef4c92961bd0f686a;hp=c3ecfbc373b26718be4d43024f17aedb801d9c3e;hpb=f93d55176e4db9edfb1840054169003bcca4d1fb;p=pdclib diff --git a/platform/example/functions/_PDCLIB/_Exit.c b/platform/example/functions/_PDCLIB/_Exit.c index c3ecfbc..a3d20f5 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). @@ -14,7 +12,8 @@ #ifndef REGTEST #include <_PDCLIB_glue.h> -#include + +extern void _exit( int status ) _PDCLIB_NORETURN; void _PDCLIB_Exit( int status ) { @@ -24,15 +23,15 @@ void _PDCLIB_Exit( int status ) #endif #ifdef TEST -/* TODO: Work around the following undef */ -#undef SEEK_SET #include <_PDCLIB_test.h> int main( void ) { +#ifndef REGTEST int UNEXPECTED_RETURN = 0; _PDCLIB_Exit( 0 ); TESTCASE( UNEXPECTED_RETURN ); +#endif return TEST_RESULTS; }