]> pd.if.org Git - pdclib/blobdiff - platform/example/functions/_PDCLIB/seek.c
Joined 32 and 64 bit configurations, made platform linking unnecessary.
[pdclib] / platform / example / functions / _PDCLIB / seek.c
index b28de731d4a8189e854bc7e6618c98512524aa25..3a65d6eae3a90e75af71a736b6f2209ef2492e37 100644 (file)
@@ -1,5 +1,3 @@
-/* $Id$ */
-
 /* int64_t _PDCLIB_seek( FILE *, int64_t, int )
 
    This file is part of the Public Domain C Library (PDCLib).
@@ -8,10 +6,9 @@
 
 #include <stdio.h>
 
-#ifndef _PDCLIB_GLUE_H
-#define _PDCLIB_GLUE_H
+#ifndef REGTEST
+
 #include <_PDCLIB_glue.h>
-#endif
 
 #include "/usr/include/errno.h"
 
@@ -53,17 +50,19 @@ _PDCLIB_int64_t _PDCLIB_seek( struct _PDCLIB_file_t * stream, _PDCLIB_int64_t of
             _PDCLIB_errno = _PDCLIB_ERROR;
             break;
         default:
-            /* This should probably be something like EUNKNOWN. */
+            /* This should be something like EUNKNOWN. */
             _PDCLIB_errno = _PDCLIB_ERROR;
             break;
     }
     return EOF;
 }
 
+#endif
+
 #ifdef TEST
 #include <_PDCLIB_test.h>
 
-int main()
+int main( void )
 {
     /* Testing covered by ftell.c */
     return TEST_RESULTS;