Logo
Explore Help
Register Sign In
TeamHepta/SDL
1
0
Fork 0
You've already forked SDL
mirror of https://github.com/libsdl-org/SDL.git synced 2026-03-24 01:31:06 +01:00
Code Issues Packages Projects Releases Wiki Activity
Files
d5ebbcb4e5beba57ccac1da693908d903efb9acd
SDL/Xcode-iOS/Demos/src/common.h

11 lines
245 B
C
Raw Normal View History

Fixed crash if initialization of EGL failed but was tried again later. The internal function SDL_EGL_LoadLibrary() did not delete and remove a mostly uninitialized data structure if loading the library first failed. A later try to use EGL then skipped initialization and assumed it was previously successful because the data structure now already existed. This led to at least one crash in the internal function SDL_EGL_ChooseConfig() because a NULL pointer was dereferenced to make a call to eglBindAPI().
2015-06-21 17:33:46 +02:00
/*
* 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);
Fixed bug 3517 - Compiler warnings with gcc -Wstrict-prototypes 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.
2016-12-26 02:12:21 -08:00
extern double updateDeltaTime(void);
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.3 Page: 129ms Template: 4ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API