summaryrefslogtreecommitdiff
path: root/indra/llcommon/llpreprocessor.h
diff options
context:
space:
mode:
authorGlenn Glazer <coyot@lindenlab.com>2017-05-12 08:18:22 -0700
committerGlenn Glazer <coyot@lindenlab.com>2017-05-12 08:18:22 -0700
commit9b3166ffc0cb3a686ea1f3007110976fbf81ea1c (patch)
tree5884820ab4bd08b66d9ba28c134feef197131038 /indra/llcommon/llpreprocessor.h
parent1dcc9e3e1163b93d7654fc776d8e81252f15a6e1 (diff)
parentb92ab8f7e659de66140cc6f538c74c1fc81e6a73 (diff)
pull from v64 gate
Diffstat (limited to 'indra/llcommon/llpreprocessor.h')
-rw-r--r--indra/llcommon/llpreprocessor.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/indra/llcommon/llpreprocessor.h b/indra/llcommon/llpreprocessor.h
index 3698d9db44..2879038c36 100644
--- a/indra/llcommon/llpreprocessor.h
+++ b/indra/llcommon/llpreprocessor.h
@@ -192,13 +192,9 @@
# define LL_COMMON_API
#endif // LL_COMMON_LINK_SHARED
-#if LL_WINDOWS
-#define LL_TYPEOF(exp) decltype(exp)
-#elif LL_LINUX
-#define LL_TYPEOF(exp) typeof(exp)
-#elif LL_DARWIN
-#define LL_TYPEOF(exp) typeof(exp)
-#endif
+// With C++11, decltype() is standard. We no longer need a platform-dependent
+// macro to get the type of an expression.
+#define LL_TYPEOF(expr) decltype(expr)
#define LL_TO_STRING_HELPER(x) #x
#define LL_TO_STRING(x) LL_TO_STRING_HELPER(x)