mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-01-25 21:01:03 +00:00
b4e069e7f8
felix Compiling even a simple SDL2 'hello world' program with gcc -Wstrict-prototypes (GCC 6.2.1) results in warnings like: /usr/include/SDL2/SDL_gamecontroller.h:143:1: attention : function declaration isn't a prototype [-Wstrict-prototypes] extern DECLSPEC int SDLCALL SDL_GameControllerNumMappings(); ^~~~~~ It seems there is a missing 'void' between the parentheses.
11 lines
245 B
C
11 lines
245 B
C
/*
|
|
* common.h
|
|
* written by Holmes Futrell
|
|
* use however you want
|
|
*/
|
|
|
|
extern int randomInt(int min, int max);
|
|
extern float randomFloat(float min, float max);
|
|
extern void fatalError(const char *string);
|
|
extern double updateDeltaTime(void);
|