1
0
Fork 0

Fix for FreeBSD and a typo

Fix provided by Ganael LAPLANCHE, thanks!
This commit is contained in:
Torsten Dreyer 2016-03-12 20:55:46 +01:00
parent a1e81a2fdc
commit 1bf5fe1c27
3 changed files with 2 additions and 2 deletions

View file

@ -245,7 +245,7 @@ size_t HTS_ftell(HTS_File * fp)
} else if (fp->type == HTS_FILE) {
fpos_t pos;
fgetpos((FILE *) fp->pointer, &pos);
#if defined(_WIN32) || defined(__CYGWIN__) || defined(__APPLE__) || defined(__ANDROID__)
#if defined(_WIN32) || defined(__CYGWIN__) || defined(__APPLE__) || defined(__FreeBSD__) || defined(__ANDROID__)
return (size_t) pos;
#else
return (size_t) pos.__pos;

View file

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB