diff options
| author | Timothy Collett | 2012-06-14 13:42:40 -0400 |
|---|---|---|
| committer | Timothy Collett | 2012-06-14 13:42:40 -0400 |
| commit | f2a30c1a929d14a79ee95402b72565b3f23eab7a (patch) | |
| tree | ecf0cca1f32c4b41e24e6d806d8adb7aaa8ba3a1 /library/Hooks-darwin.cpp | |
| parent | 12543d6a5b4afc4cbba20670f3e463672ed9fac4 (diff) | |
| download | dfhack-f2a30c1a929d14a79ee95402b72565b3f23eab7a.tar.gz dfhack-f2a30c1a929d14a79ee95402b72565b3f23eab7a.tar.bz2 dfhack-f2a30c1a929d14a79ee95402b72565b3f23eab7a.tar.xz | |
Remove build-time dependency on SDL
Diffstat (limited to 'library/Hooks-darwin.cpp')
| -rw-r--r-- | library/Hooks-darwin.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/library/Hooks-darwin.cpp b/library/Hooks-darwin.cpp index 347881ee..ef89105d 100644 --- a/library/Hooks-darwin.cpp +++ b/library/Hooks-darwin.cpp @@ -83,8 +83,8 @@ DFhackCExport void SDL_Quit(void) } // called by DF to check input events -static int (*_SDL_PollEvent)(SDL_Event* event) = 0; -DFhackCExport int SDL_PollEvent(SDL_Event* event) +static int (*_SDL_PollEvent)(SDL::Event* event) = 0; +DFhackCExport int SDL_PollEvent(SDL::Event* event) { pollevent_again: // if SDL returns 0 here, it means there are no more events. return 0 @@ -140,7 +140,7 @@ DFhackCExport int SDL_Init(uint32_t flags) fprintf(stderr,"dfhack: saving real SDL functions\n"); _SDL_Init = (int (*)( uint32_t )) dlsym(RTLD_NEXT, "SDL_Init"); _SDL_Quit = (void (*)( void )) dlsym(RTLD_NEXT, "SDL_Quit"); - _SDL_PollEvent = (int (*)(SDL_Event*))dlsym(RTLD_NEXT,"SDL_PollEvent"); + _SDL_PollEvent = (int (*)(SDL::Event*))dlsym(RTLD_NEXT,"SDL_PollEvent"); fprintf(stderr,"dfhack: saved real SDL functions\n"); // check if we got them |
