From 2d31d08fa65412e35189fcaff86b0df7b4c0590c Mon Sep 17 00:00:00 2001 From: Jonas Kulla Date: Thu, 18 Jun 2015 07:21:55 +0200 Subject: [PATCH] Add some general fixes from #111 found by @chosenofbear --- src/sdl-util.h | 2 +- src/vorbissource.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sdl-util.h b/src/sdl-util.h index 1ed615d..4c94d39 100644 --- a/src/sdl-util.h +++ b/src/sdl-util.h @@ -44,7 +44,7 @@ int __sdlThreadFun(void *obj) template SDL_Thread *createSDLThread(C *obj, const std::string &name = std::string()) { - return SDL_CreateThread(__sdlThreadFun, name.c_str(), obj); + return SDL_CreateThread((__sdlThreadFun), name.c_str(), obj); } /* On Android, SDL_RWFromFile always opens files from inside diff --git a/src/vorbissource.cpp b/src/vorbissource.cpp index 07dcdb4..7716a69 100644 --- a/src/vorbissource.cpp +++ b/src/vorbissource.cpp @@ -25,6 +25,7 @@ #define OV_EXCLUDE_STATIC_CALLBACKS #include #include +#include static size_t vfRead(void *ptr, size_t size, size_t nmemb, void *ops) {