Guard _PSP_FW_VERSION macro to mitigate warnings with -Wundef

Fixes #123. Guards `_PSP_FW_VERSION` references with `#if defined()` to avoid the SDK headers returning warnings when compiling modules with the `-Wundef` cflag.
This commit is contained in:
Steam Deck User
2023-04-24 23:28:33 -04:00
parent 4493616d8e
commit 78a1f9ac72
6 changed files with 10 additions and 10 deletions

View File

@@ -102,7 +102,7 @@ SceSize sceKernelMaxFreeMemSize(void);
*/
int sceKernelDevkitVersion(void);
#if _PSP_FW_VERSION >= 150
#if defined(_PSP_FW_VERSION) && _PSP_FW_VERSION >= 150
/**
* Kernel printf function.