diff options
author | Richard Linden <none@none> | 2013-08-19 11:57:33 -0700 |
---|---|---|
committer | Richard Linden <none@none> | 2013-08-19 11:57:33 -0700 |
commit | 296ec41e1648efe981a30043b4a7f23590d8a828 (patch) | |
tree | 8f2a1358ecdc827428a7832caf945d9ba7744945 /indra/llcommon/llpreprocessor.h | |
parent | 3e31cb112daf0a759737ba4ec55a8772361483f2 (diff) |
BUILDFIX: abstracted decltype into macro LLTYPEOF for temporary
gcc 4.1/4.2 support
Diffstat (limited to 'indra/llcommon/llpreprocessor.h')
-rwxr-xr-x | indra/llcommon/llpreprocessor.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/llcommon/llpreprocessor.h b/indra/llcommon/llpreprocessor.h index 7fdb537ab5..a764a42fca 100755 --- a/indra/llcommon/llpreprocessor.h +++ b/indra/llcommon/llpreprocessor.h @@ -181,4 +181,11 @@ # define LL_COMMON_API #endif // LL_COMMON_LINK_SHARED +#if LL_WINDOWS +#define LLTYPEOF(exp) decltype(exp) +#elif LL_LINUX +#define LLTYPEOF(exp) typeof(exp) +#elif LL_DARWIN +#define LLTYPEOF(exp) typeof(exp) +#endif #endif // not LL_LINDEN_PREPROCESSOR_H |