X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=platform%2Fexample%2Ffunctions%2F_PDCLIB%2Fopen.c;h=0f9d08cc25e92bdff52927f16f00b0be5745004f;hb=d865c4403fc91d1f1ac95ba76febcee9f429bb97;hp=fc02790826c1ee913212b7670ab1f01aecbb5597;hpb=b1fc26afebd4d557ff89a44bc21767a8704c3809;p=pdclib diff --git a/platform/example/functions/_PDCLIB/open.c b/platform/example/functions/_PDCLIB/open.c index fc02790..0f9d08c 100644 --- a/platform/example/functions/_PDCLIB/open.c +++ b/platform/example/functions/_PDCLIB/open.c @@ -11,7 +11,8 @@ #include #ifndef REGTEST -#include <_PDCLIB_glue.h> + +#include "_PDCLIB_glue.h" #include #include @@ -95,13 +96,15 @@ 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. */ @@ -157,8 +160,8 @@ int main( void ) TESTCASE( _PDCLIB_close( fh ) == 0 ); /* Cleaning up. */ TESTCASE( remove( testfile ) == 0 ); +#endif return TEST_RESULTS; } #endif -