mirror of
https://github.com/lcn2/calc.git
synced 2025-08-16 01:03:29 +03:00
Release calc version 2.11.0t10
This commit is contained in:
4
file.h
4
file.h
@@ -42,7 +42,7 @@ typedef struct {
|
||||
* We assume that if your system does not have fgetpos/fsetpos,
|
||||
* then it will have a FILEPOS that is a scalar type (e.g., long).
|
||||
* Some obscure systems without fgetpos/fsetpos may not have a simple
|
||||
* scalar type. In these cases the f_tell macro below will fail.
|
||||
* scalar type. In these cases the f_tell macro below will fail.
|
||||
*/
|
||||
#if defined(HAVE_FPOS)
|
||||
|
||||
@@ -51,7 +51,7 @@ typedef struct {
|
||||
|
||||
#else
|
||||
|
||||
#define f_seek_set(stream, loc) \
|
||||
#define f_seek_set(stream, loc) \
|
||||
fseek((FILE*)(stream), *(FILEPOS*)(loc), SEEK_SET)
|
||||
#define f_tell(stream, loc) (*((FILEPOS*)(loc)) = ftell((FILE*)(stream)))
|
||||
|
||||
|
Reference in New Issue
Block a user