Skip to content

Commit

Permalink
use the posix-compliant __linux__ preprocessor symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
devernay committed Nov 16, 2022
1 parent 1d64a31 commit a5d9ca8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Support/Library/ofxsCore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ England
#include "ofxsSupportPrivate.h"
#ifdef DEBUG
#include <iostream>
#if defined(__APPLE__) || defined(linux)
#if defined(__APPLE__) || defined(__linux__)
#include <execinfo.h>
#include <stdlib.h>
#endif
Expand Down Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit a5d9ca8

Please sign in to comment.