diff options
| author | Timothy Collett | 2012-05-26 16:08:15 -0400 |
|---|---|---|
| committer | Timothy Collett | 2012-05-26 16:08:15 -0400 |
| commit | 7ec0fd6fc02815d6093cdff97599226045657053 (patch) | |
| tree | ab6a3a147fcd6212f1c8720d3b285fe0bf2a332a /library/Hooks-darwin.cpp | |
| parent | 1dd4cc56670819e72d05c306d4f97d9b5a15cd3b (diff) | |
| download | dfhack-7ec0fd6fc02815d6093cdff97599226045657053.tar.gz dfhack-7ec0fd6fc02815d6093cdff97599226045657053.tar.bz2 dfhack-7ec0fd6fc02815d6093cdff97599226045657053.tar.xz | |
Trying to set up an autorelease pool, but not yet succeeding.
Diffstat (limited to 'library/Hooks-darwin.cpp')
| -rw-r--r-- | library/Hooks-darwin.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/library/Hooks-darwin.cpp b/library/Hooks-darwin.cpp index 59539c79..19f30f19 100644 --- a/library/Hooks-darwin.cpp +++ b/library/Hooks-darwin.cpp @@ -49,8 +49,6 @@ distribution. #include "Hooks.h" #include <iostream> -#include "MacPool.h" - /*static const interpose_t interposers[] __attribute__ ((section("__DATA, __interpose"))) = { { (void *)DFH_SDL_Init, (void *)SDL_Init }, @@ -60,6 +58,9 @@ distribution. };*/ +extern "C" int create_pool(); +extern "C" int destroy_pool(); + /******************************************************************************* * SDL part starts here * *******************************************************************************/ @@ -81,7 +82,7 @@ DFhackCExport void SDL_Quit(void) _SDL_Quit(); }*/ -// destroy_pool(); + destroy_pool(); _SDL_Quit(); } @@ -140,7 +141,7 @@ DFhackCExport int SDL_Init(uint32_t flags) // we don't reroute stdout until we figure out if this should be done at all // See: Console-linux.cpp -// create_pool(); + create_pool(); // find real functions fprintf(stderr,"dfhack: saving real SDL functions\n"); |
