From: sapier Date: Fri, 11 Apr 2014 19:45:30 +0000 (+0200) Subject: Fix broken win32+bsd build X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=8bb8602c2533384fdd5ecb95edc5156808a34db5;p=zefram%2Fminetest%2Fminetest_engine.git Fix broken win32+bsd build --- diff --git a/src/porting.h b/src/porting.h index 5739b687..9024570b 100644 --- a/src/porting.h +++ b/src/porting.h @@ -278,13 +278,13 @@ inline void setThreadName(const char* name) { * to add this feature please create a pull request. * "setproctitle" doesn't work for threadnames. */ -#define setThreadName(a) +inline void setThreadName(const char* name) {} #elif defined(_WIN32) // threadnames are not supported on windows -#define setThreadName(a) +inline void setThreadName(const char* name) {} #else #warning "Unknown platform for setThreadName support, you wont have threadname support." -#define setThreadName(a) +inline void setThreadName(const char* name) {} #endif } // namespace porting