From 0384a227561278a0821cf376d29ddb05dadfe532 Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Sat, 24 Dec 2022 02:08:03 -0500
Subject: [PATCH] rwops: SDL3 headers renamed RW_SEEK_* to SDL_RW_SEEK_*
---
src/sdl2_compat.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/sdl2_compat.c b/src/sdl2_compat.c
index c71ac1d..9d1487a 100644
--- a/src/sdl2_compat.c
+++ b/src/sdl2_compat.c
@@ -1424,7 +1424,7 @@ SDL_RWseek(SDL2_RWops *rwops2, Sint64 offset, int whence)
DECLSPEC Sint64 SDLCALL
SDL_RWtell(SDL2_RWops *rwops2)
{
- return rwops2->seek(rwops2, 0, RW_SEEK_CUR);
+ return rwops2->seek(rwops2, 0, SDL_RW_SEEK_CUR);
}
DECLSPEC size_t SDLCALL
@@ -1480,13 +1480,13 @@ stdio_size(SDL2_RWops *rwops2)
{
Sint64 pos, size;
- pos = SDL_RWseek(rwops2, 0, RW_SEEK_CUR);
+ pos = SDL_RWseek(rwops2, 0, SDL_RW_SEEK_CUR);
if (pos < 0) {
return -1;
}
- size = SDL_RWseek(rwops2, 0, RW_SEEK_END);
+ size = SDL_RWseek(rwops2, 0, SDL_RW_SEEK_END);
- SDL_RWseek(rwops2, pos, RW_SEEK_SET);
+ SDL_RWseek(rwops2, pos, SDL_RW_SEEK_SET);
return size;
}
@@ -1497,13 +1497,13 @@ stdio_seek(SDL2_RWops *rwops2, Sint64 offset, int whence)
int stdiowhence;
switch (whence) {
- case RW_SEEK_SET:
+ case SDL_RW_SEEK_SET:
stdiowhence = SEEK_SET;
break;
- case RW_SEEK_CUR:
+ case SDL_RW_SEEK_CUR:
stdiowhence = SEEK_CUR;
break;
- case RW_SEEK_END:
+ case SDL_RW_SEEK_END:
stdiowhence = SEEK_END;
break;
default: