diff --git a/indra/llcommon/llthread.h b/indra/llcommon/llthread.h index 549a090ec..b8093ef82 100644 --- a/indra/llcommon/llthread.h +++ b/indra/llcommon/llthread.h @@ -33,7 +33,7 @@ #ifndef LL_LLTHREAD_H #define LL_LLTHREAD_H -#ifdef __GNUC__ +#if (defined(__GNUC__) && !defined(__clang__)) // Needed for is_main_thread() when compiling with optimization (relwithdebinfo). // It doesn't hurt to just always specify it though. #pragma interface