]> pd.if.org Git - pdclib/blobdiff - platform/example/functions/_PDCLIB/open.c
Joined 32 and 64 bit configurations, made platform linking unnecessary.
[pdclib] / platform / example / functions / _PDCLIB / open.c
index 2098dd360a866b65db4a7f9a5c5a249d4f72020c..f661da5bd170ab2be05ec333f1982a25abf3c3e9 100644 (file)
@@ -1,5 +1,3 @@
-/* $Id$ */
-
 /* _PDCLIB_open( char const * const, int )
 
    This file is part of the Public Domain C Library (PDCLib).
@@ -104,6 +102,7 @@ int _PDCLIB_open( char const * const filename, unsigned int mode )
 
 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;
 }