Skip to content

Commit 8bb8602

Browse files
sapiersapier
sapier
authored and
sapier
committedApr 11, 2014
Fix broken win32+bsd build
1 parent fefec8c commit 8bb8602

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎src/porting.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -278,13 +278,13 @@ inline void setThreadName(const char* name) {
278278
* to add this feature please create a pull request.
279279
* "setproctitle" doesn't work for threadnames.
280280
*/
281-
#define setThreadName(a)
281+
inline void setThreadName(const char* name) {}
282282
#elif defined(_WIN32)
283283
// threadnames are not supported on windows
284-
#define setThreadName(a)
284+
inline void setThreadName(const char* name) {}
285285
#else
286286
#warning "Unknown platform for setThreadName support, you wont have threadname support."
287-
#define setThreadName(a)
287+
inline void setThreadName(const char* name) {}
288288
#endif
289289

290290
} // namespace porting

0 commit comments

Comments
 (0)
Please sign in to comment.