X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=platform%2Fexample%2Ffunctions%2F_PDCLIB%2Fopen.c;h=1e2c775ac436f3fb915b67523407ba51fede3c25;hb=d6f1494a4f38a212b29a13ee713885058dcf0fe7;hp=2098dd360a866b65db4a7f9a5c5a249d4f72020c;hpb=ce0e5d8cd76b50f239fb8e95170502b146247b35;p=pdclib diff --git a/platform/example/functions/_PDCLIB/open.c b/platform/example/functions/_PDCLIB/open.c index 2098dd3..1e2c775 100644 --- a/platform/example/functions/_PDCLIB/open.c +++ b/platform/example/functions/_PDCLIB/open.c @@ -1,5 +1,3 @@ -/* $Id$ */ - /* _PDCLIB_open( char const * const, int ) This file is part of the Public Domain C Library (PDCLib). @@ -13,7 +11,7 @@ #include #ifndef REGTEST -#include <_PDCLIB_glue.h> +#include "_PDCLIB_glue.h" #include #include @@ -97,13 +95,14 @@ int _PDCLIB_open( char const * const filename, unsigned int mode ) #endif #ifdef TEST -#include <_PDCLIB_test.h> +#include "_PDCLIB_test.h" #include #include int main( void ) { +#ifndef REGTEST /* This testdriver assumes POSIX, i.e. _PDCLIB_fd_t being int and being incremented by one on each successful open. */ @@ -159,6 +158,7 @@ int main( void ) TESTCASE( _PDCLIB_close( fh ) == 0 ); /* Cleaning up. */ TESTCASE( remove( testfile ) == 0 ); +#endif return TEST_RESULTS; }