mirror of
https://github.com/pspdev/pspsdk.git
synced 2025-12-24 20:45:05 +00:00
Fix spharm example for gcc14
This commit is contained in:
@@ -77,14 +77,14 @@ struct Vertex __attribute__((aligned(16))) vertices[12*3] =
|
||||
|
||||
int done = 0;
|
||||
/* Exit callback */
|
||||
int exit_callback(void)
|
||||
int exit_callback(int arg1, int arg2, void *common)
|
||||
{
|
||||
done = 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* Callback thread */
|
||||
void CallbackThread(void *arg)
|
||||
int CallbackThread(SceSize args, void *arg)
|
||||
{
|
||||
int cbid;
|
||||
|
||||
@@ -92,6 +92,7 @@ void CallbackThread(void *arg)
|
||||
sceKernelRegisterExitCallback(cbid);
|
||||
|
||||
sceKernelSleepThreadCB();
|
||||
return cbid;
|
||||
}
|
||||
|
||||
/* Sets up the callback thread and returns its thread id */
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
#include <pspgu.h>
|
||||
#include <pspgum.h>
|
||||
|
||||
#include <math.h>
|
||||
#include "mt19937.h"
|
||||
|
||||
/*
|
||||
@@ -31,7 +32,7 @@
|
||||
|
||||
float shift23=(float)(1<<23);
|
||||
float OOshift23=1.0f/(float)(1<<23);
|
||||
static inline float floorf(float i)
|
||||
inline float floorf(float i)
|
||||
{ // return largest integer that is less than or equal to i
|
||||
float k = (float)((int) i);
|
||||
if (k <= i)
|
||||
|
||||
Reference in New Issue
Block a user