added a list of SDL functions to wrap in windows version

develop
Petr Mrázek 2010-01-04 05:41:53 +00:00
parent 242bf47143
commit 8f47982e7d
2 changed files with 43 additions and 4 deletions

@ -41,9 +41,6 @@ distribution.
#include <sys/syscall.h> #include <sys/syscall.h>
#include <signal.h> #include <signal.h>
// a full memory barrier! better be safe than sorry.
#define gcc_barrier asm volatile("" ::: "memory"); __sync_synchronize();
/* /*
* wait for futex * wait for futex
* futex has to be aligned to 4 bytes * futex has to be aligned to 4 bytes
@ -120,7 +117,7 @@ void SHM_Init ( void )
errorstate = 1; errorstate = 1;
return; return;
} }
gcc_barrier full_barrier
((shm_cmd *)shm)->pingpong = DFPP_RUNNING; // make sure we don't stall or do crazy stuff ((shm_cmd *)shm)->pingpong = DFPP_RUNNING; // make sure we don't stall or do crazy stuff
} }

@ -27,5 +27,47 @@ distribution.
*/ */
#include "shms.h" #include "shms.h"
extern char *shm; extern char *shm;
// SDL functions used in 40d16
/*
SDL_AddTimer
SDL_CondSignal
SDL_CondWait
SDL_ConvertSurface
SDL_CreateCond
SDL_CreateMutex
SDL_CreateRGBSurface
SDL_CreateRGBSurfaceFrom
SDL_DestroyCond
SDL_DestroyMutex
SDL_EnableKeyRepeat
SDL_EnableUNICODE
SDL_FreeSurface
SDL_GL_GetAttribute
SDL_GL_SetAttribute
SDL_GL_SwapBuffers
SDL_GetError
SDL_GetKeyState
SDL_GetTicks
SDL_GetVideoInfo
SDL_Init
SDL_LockSurface
SDL_MapRGB
SDL_PollEvent
SDL_Quit
SDL_RWFromFile
SDL_RemoveTimer
SDL_SaveBMP_RW
SDL_SetAlpha
SDL_SetColorKey
SDL_SetModuleHandle
SDL_SetVideoMode
SDL_ShowCursor
SDL_UnlockSurface
SDL_UpperBlit
SDL_WM_SetCaption
SDL_WM_SetIcon
SDL_mutexP
SDL_strlcpy
*/
// TO BE DONE // TO BE DONE