Skip to content

Commit

Permalink
Use #if defined(__GNUC__) to bracket the call to the gcc demangling
Browse files Browse the repository at this point in the history
function __cxa_demangle
  • Loading branch information
John Rennie committed Mar 15, 2011
1 parent e42a8e2 commit d92db02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xbmc/threads/Thread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ void CThread::SetPrioritySched_RR(void)

// make thread fixed, set to 'true' for a non-fixed thread
theFixedPolicy.timeshare = false;
result = thread_policy_set(pthread_mach_thread_np(ThreadId()), THREAD_EXTENDED_POLICY,
result = thread_policy_set(pthread_mach_thread_np(ThreadId()), THREAD_EXTENDED_POLICY,
(thread_policy_t)&theFixedPolicy, THREAD_EXTENDED_POLICY_COUNT);

int policy;
Expand Down Expand Up @@ -454,7 +454,7 @@ CStdString CThread::GetTypeName(void)
name = name.Right(name.length() - 6);

// gcc provides __cxa_demangle to demangle the name
#ifdef USING_GCC
#if defined(__GNUC__)
char* demangled;
int status

Expand Down

0 comments on commit d92db02

Please sign in to comment.