You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This bug report was migrated from our old Bugzilla tracker.
Reported in version: HG 2.1 Reported for operating system, platform: Other, All
Comments on the original bug report:
On 2019-10-08 14:19:15 +0000, Dan Gohman wrote:
SDL defines its own constants for RW_SEEK_SET etc., and then assumes that they have the same values as the host SEEK_SET etc. However, while the values SDL uses are common, they are not universal; for example cloudlibc uses different values:
Specifically, include/SDL_rwops.h defines RW_SEEK_SET etc. like this:
#define RW_SEEK_SET 0 /< Seek from the beginning of data */
#define RW_SEEK_CUR 1 /< Seek relative to current read point */
#define RW_SEEK_END 2 /**< Seek relative to the end of data */
(done the same way as window_seek, mem_seek, etc..)
Just notice, since linux 3.1, there are also: SEEK_DATA, SEEK_HOLE ...
that would have worked before, but I am not seek this is used.
I think not in SDL_mixer/ttf/image externals libs
Seeking file data and holes
Since version 3.1, Linux supports the following additional values for
whence:
SEEK_DATA
Adjust the file offset to the next location in the file
greater than or equal to offset containing data. If offset
points to data, then the file offset is set to offset.
SEEK_HOLE
Adjust the file offset to the next hole in the file greater
than or equal to offset. If offset points into the middle of
a hole, then the file offset is set to offset. If there is no
hole past offset, then the file offset is adjusted to the end
of the file (i.e., there is an implicit hole at the end of any
file).
This bug report was migrated from our old Bugzilla tracker.
Reported in version: HG 2.1
Reported for operating system, platform: Other, All
Comments on the original bug report:
On 2019-10-08 14:19:15 +0000, Dan Gohman wrote:
On 2019-10-10 15:25:55 +0000, Sylvain wrote:
The text was updated successfully, but these errors were encountered: