From d450fbf63ef4308dbeb164d9999e0c09f9ec5c91 Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Tue, 4 Feb 2025 09:02:48 +0000 Subject: [PATCH] Avoid `-Wundef` compiler warnings --- src/mp/util.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mp/util.cpp b/src/mp/util.cpp index 7126df9..f96598e 100644 --- a/src/mp/util.cpp +++ b/src/mp/util.cpp @@ -19,7 +19,7 @@ #include #include -#if __linux__ +#ifdef __linux__ #include #endif @@ -59,7 +59,7 @@ std::string ThreadName(const char* exe_name) // Prefer platform specific thread ids over the standard C++11 ones because // the former are shorter and are the same as what gdb prints "LWP ...". -#if __linux__ +#ifdef __linux__ buffer << syscall(SYS_gettid); #elif defined(HAVE_PTHREAD_THREADID_NP) uint64_t tid = 0;