Fix broken win32+bsd build
authorsapier <Sapier at GMX dot net>
Fri, 11 Apr 2014 19:45:30 +0000 (21:45 +0200)
committersapier <Sapier at GMX dot net>
Fri, 11 Apr 2014 19:45:30 +0000 (21:45 +0200)
src/porting.h

index 5739b6876a4298058963ce96589165f6772d3ae9..9024570bd7dab1635d1439ee4569b131af8575c3 100644 (file)
@@ -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