Skip to content

Commit

Permalink
Fix broken win32+bsd build
Browse files Browse the repository at this point in the history
  • Loading branch information
sapier authored and sapier committed Apr 11, 2014
1 parent fefec8c commit 8bb8602
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/porting.h
Expand Up @@ -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
Expand Down

0 comments on commit 8bb8602

Please sign in to comment.