]> git.kaiwu.me - quickjs.git/commit
Use ftello() & fseeko() on any OS based on GNU libc
authorPino Toscano <toscano.pino@tiscali.it>
Sun, 9 Jun 2024 07:21:01 +0000 (09:21 +0200)
committerCharlie Gordon <github@chqrlie.org>
Sun, 21 Jul 2024 08:24:01 +0000 (10:24 +0200)
commit8624b5c6f089f9efd3569ff47b82d58ccb034dfe
tree14b678df9f80dd593b7ce2f8677f2f1c3b2cd896
parent34894936d8ce394efa1aba7146f6cf75ad24edfe
Use ftello() & fseeko() on any OS based on GNU libc

Strictly speaking, they are available in POSIX.1-2008 [1][2], so they
could be used on more platforms/OSes. To be cautious, enable them when
using GNU libc, since they have been available with that libc for a
very long time.

[1] https://pubs.opengroup.org/onlinepubs/9699919799/functions/ftell.html
[2] https://pubs.opengroup.org/onlinepubs/9699919799/functions/fseek.html
quickjs-libc.c