ref: b464c6ba36c0b351ab087d2fa9eb87302d374393
parent: 7cb2dd4c19885e17b9b8fa79fc0d36fced5e8876
author: Andrew Alderwick <andrew@alderwick.co.uk>
date: Sat Jun 11 04:22:54 EDT 2022
sdl: add missing typedefs
--- a/include/npe/SDL2/SDL.h
+++ b/include/npe/SDL2/SDL.h
@@ -12,6 +12,11 @@
typedef u8int Uint8;
typedef u16int Uint16;
typedef u32int Uint32;
+typedef u64int Uint64;
+typedef s8int Sint8;
+typedef s16int Sint16;
+typedef s32int Sint32;
+typedef s64int Sint64;
typedef enum {SDL_FALSE, SDL_TRUE} SDL_bool;
typedef struct SDL_Window SDL_Window;
@@ -55,8 +60,8 @@
int SDL_Init(int);
SDL_Keymod SDL_GetModState(void);
int SDL_ShowCursor(int toggle);
-u64int SDL_GetPerformanceFrequency(void);
-u64int SDL_GetPerformanceCounter(void);
+Uint64 SDL_GetPerformanceFrequency(void);
+Uint64 SDL_GetPerformanceCounter(void);
char *SDL_GetError(void);
char *SDL_GetClipboardText(void);
int SDL_SetClipboardText(char *);
--- a/libnpe_sdl2/sdl2.c
+++ b/libnpe_sdl2/sdl2.c
@@ -94,13 +94,13 @@
return showcursor;
}
-u64int
+Uint64
SDL_GetPerformanceFrequency(void)
{
return _tos->cyclefreq;
}
-u64int
+Uint64
SDL_GetPerformanceCounter(void)
{
u64int x;