Commit 68ccad8d authored by Lars Buitinck's avatar Lars Buitinck

make fpos_t an opaque type

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.
parent add80913
...@@ -48,7 +48,7 @@ cdef extern from "stdio.h" nogil: ...@@ -48,7 +48,7 @@ cdef extern from "stdio.h" nogil:
void rewind (FILE *stream) void rewind (FILE *stream)
long int ftell (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" ctypedef const fpos_t const_fpos_t "const fpos_t"
int fgetpos (FILE *stream, fpos_t *position) int fgetpos (FILE *stream, fpos_t *position)
int fsetpos (FILE *stream, const fpos_t *position) int fsetpos (FILE *stream, const fpos_t *position)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment