summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Beasley <rbeasley@vmware.com>2014-07-29 09:28:13 +0200
committerKjell Ahlstedt <kjell.ahlstedt@bredband.net>2014-07-29 09:28:13 +0200
commita64385ca50b04f17b5edc35b75d83281d503e383 (patch)
tree8308f50f9230249b0cb357119f1e343bd99057f2
parent1b05b5a573d737e3c29056d449ebc299c26d22e3 (diff)
downloadsigc++-a64385ca50b04f17b5edc35b75d83281d503e383.tar.gz
Tests: Enable C++11 lambda expressions with MS Visual Studio 2012 and later
* tests/test_cpp11_lambda.cc: * tests/test_track_obj.cc: Compile C++11 lambda expressions if _MSC_VER >= 1700. Bug #733752.
-rw-r--r--tests/test_cpp11_lambda.cc2
-rw-r--r--tests/test_track_obj.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_cpp11_lambda.cc b/tests/test_cpp11_lambda.cc
index 068e1f5..e9b2ba7 100644
--- a/tests/test_cpp11_lambda.cc
+++ b/tests/test_cpp11_lambda.cc
@@ -42,7 +42,7 @@
// echo $?
// If test_cpp11_lambda writes nothing and the return code is 0, the test has passed.
-#if __cplusplus >= 201103L || defined(__GXX_EXPERIMENTAL_CXX0X__)
+#if __cplusplus >= 201103L || defined(__GXX_EXPERIMENTAL_CXX0X__) || _MSC_VER >= 1700
# define USING_CPP11_LAMBDA_EXPRESSIONS
#endif
diff --git a/tests/test_track_obj.cc b/tests/test_track_obj.cc
index 80fcd59..9807e95 100644
--- a/tests/test_track_obj.cc
+++ b/tests/test_track_obj.cc
@@ -33,7 +33,7 @@
// echo $?
// If test_track_obj writes nothing and the return code is 0, the test has passed.
-#if __cplusplus >= 201103L || defined(__GXX_EXPERIMENTAL_CXX0X__)
+#if __cplusplus >= 201103L || defined(__GXX_EXPERIMENTAL_CXX0X__) || _MSC_VER >= 1700
# define USING_CPP11_LAMBDA_EXPRESSIONS
#endif