make fpos_t an opaque type
authorLars Buitinck <L.J.Buitinck@uva.nl>
Fri, 23 Aug 2013 15:29:55 +0000 (17:29 +0200)
committerLars Buitinck <L.J.Buitinck@uva.nl>
Fri, 23 Aug 2013 15:29:55 +0000 (17:29 +0200)
According to the C11 standard, ยง7.21.1, fpos_t

    is a complete object type other than an array type

but there's no guarantee that its an integer type.

Cython/Includes/libc/stdio.pxd

index c89b21c..b7d9d53 100644 (file)
@@ -48,7 +48,7 @@ cdef extern from "stdio.h" nogil:
     void     rewind (FILE *stream)
     long int ftell  (FILE *stream)
 
-    ctypedef long long int fpos_t
+    ctypedef struct fpos_t
     ctypedef const fpos_t const_fpos_t "const fpos_t"
     int fgetpos (FILE *stream, fpos_t *position)
     int fsetpos (FILE *stream, const fpos_t *position)