Sdl.h In Official Gph Sdk...


hmn

Member
Joined
Mar 8, 2010
Messages
226
Just found this in SDL.h from the official GPH SDK:
Code:
/* HYUN_DEBUG */
#ifndef __cplusplus
int SDL_videofd; 	// ghcstop_caution: 20050128 add, mplayer
#endif
This leads to linker errors when you build a C program that includes "SDL.h" more than once because the symbol (SDL_videofd) is duplicated all over the place... if anything this should have been "extern int SDL_videofd;" (I just commented it out). Anyone knows what this is for?
 
I guess this is file descriptor for /dev/fb0 that they use for screen rotate ioctl's internally, can be safely removed (not that it should be in SDL header in first place).
 
Back
Top