GrapheneCt / PVR_PSP2

Driver layer GPU libraries and tests for PSP2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

EGL/egl.h is missing definition of IMG_CALLCONV

madebr opened this issue · comments

The file EGL/egl.h defines APIENTRY as IMG_CALLCONV:

#ifndef APIENTRY
#define APIENTRY IMG_CALLCONV
#endif

But this file does not define IMG_CALLCONV anywhere, and does not include an external file to define it.
It is defined here:

So I think EGL/egl.h is missing the following (or something similar)

#include <gpu_es4/eurasia/include4/img_defs.h>

This causes issues when using PVR_PSP2 with the upcoming SDL3.
See libsdl-org/SDL#7123

For SDL3, I fixed it by adding the following to EGL/egl.h:

#ifndef IMG_CALLCONV
#define IMG_CALLCONV
#endif

Fixed by removing IMG definitions dependency.