From a5d9ca88512692b0a872044cfde90e3181ff5ad6 Mon Sep 17 00:00:00 2001 From: Frederic Devernay Date: Tue, 15 Nov 2022 17:44:10 -0800 Subject: [PATCH] use the posix-compliant __linux__ preprocessor symbol --- Support/Library/ofxsCore.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Support/Library/ofxsCore.cpp b/Support/Library/ofxsCore.cpp index 1cde70be0..92536664c 100644 --- a/Support/Library/ofxsCore.cpp +++ b/Support/Library/ofxsCore.cpp @@ -36,7 +36,7 @@ England #include "ofxsSupportPrivate.h" #ifdef DEBUG #include -#if defined(__APPLE__) || defined(linux) +#if defined(__APPLE__) || defined(__linux__) #include #include #endif @@ -64,7 +64,7 @@ namespace OFX { # ifdef DEBUG std::cout << "Throwing suite exception! " << mapStatusToString(stat) << std::endl; OFX::Log::print("\nThrew suite exception %s:", mapStatusToString(stat)); -# if defined(__APPLE__) || defined(linux) +# if defined(__APPLE__) || defined(__linux__) void* callstack[128]; int i, frames = backtrace(callstack, 128); char** strs = backtrace_symbols(callstack, frames); @@ -83,7 +83,7 @@ namespace OFX { { # ifdef DEBUG std::cout << "Throwing suite exception! Host missing '" << name << "' suite." << std::endl; -# if defined(__APPLE__) || defined(linux) +# if defined(__APPLE__) || defined(__linux__) void* callstack[128]; int i, frames = backtrace(callstack, 128); char** strs = backtrace_symbols(callstack, frames);