mirror of
https://github.com/pspdev/pspsdk.git
synced 2026-01-01 05:06:35 +00:00
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:
@@ -47,7 +47,7 @@ struct SceKernelLoadExecVSHParam {
|
||||
u32 unk5;
|
||||
};
|
||||
|
||||
#if _PSP_FW_VERSION < 200
|
||||
#if defined(_PSP_FW_VERSION) && _PSP_FW_VERSION < 200
|
||||
/**
|
||||
* Executes a new executable from a buffer.
|
||||
*
|
||||
@@ -72,7 +72,7 @@ int sceKernelLoadExecBufferPlain(SceSize bufsize, void *buf, struct SceKernelLoa
|
||||
*/
|
||||
int sceKernelExitVSHVSH(struct SceKernelLoadExecVSHParam *param);
|
||||
|
||||
#if _PSP_FW_VERSION >= 200
|
||||
#if defined(_PSP_FW_VERSION) && _PSP_FW_VERSION >= 200
|
||||
/**
|
||||
* Restart the vsh (to be used by a kernel module)
|
||||
*
|
||||
@@ -141,7 +141,7 @@ int sceKernelLoadExecVSHMs2(const char *file, struct SceKernelLoadExecVSHParam *
|
||||
*/
|
||||
int sceKernelLoadExecVSHMs3(const char *file, struct SceKernelLoadExecVSHParam *param);
|
||||
|
||||
#if _PSP_FW_VERSION >= 300
|
||||
#if defined(_PSP_FW_VERSION) && _PSP_FW_VERSION >= 300
|
||||
/***
|
||||
* Executes a new executable from a memory stick.
|
||||
* It is the function used by the firmware to execute psx games
|
||||
|
||||
Reference in New Issue
Block a user