mirror of
https://github.com/libSDL2pp/libSDL2pp.git
synced 2025-09-08 14:58:11 -04:00
Merge pull request #43 from vladimirgamalian/patch-1
Fix mingw compilation.
This commit is contained in:
commit
b2d08359e9
@ -190,8 +190,8 @@ Sint64 RWops::Tell() {
|
||||
|
||||
Sint64 RWops::Size() {
|
||||
Sint64 old_pos = Tell();
|
||||
Sint64 size = Seek(0, SEEK_END);
|
||||
Sint64 back_pos = Seek(old_pos, SEEK_SET);
|
||||
Sint64 size = Seek(0, RW_SEEK_END);
|
||||
Sint64 back_pos = Seek(old_pos, RW_SEEK_SET);
|
||||
(void)back_pos; // silence unused variable warning on release build
|
||||
assert(back_pos == old_pos);
|
||||
return size;
|
||||
|
Loading…
x
Reference in New Issue
Block a user