diff options
Diffstat (limited to 'odk')
-rw-r--r-- | odk/CppunitTest_odk_checkapi.mk | 1 | ||||
-rw-r--r-- | odk/qa/checkapi/checkapi.cxx | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/odk/CppunitTest_odk_checkapi.mk b/odk/CppunitTest_odk_checkapi.mk index dd0b36b5c24e..8d2bf2fde882 100644 --- a/odk/CppunitTest_odk_checkapi.mk +++ b/odk/CppunitTest_odk_checkapi.mk @@ -27,6 +27,7 @@ $(eval $(call gb_CppunitTest_disable_compiler_plugins,odk_checkapi)) $(eval $(call gb_CppunitTest_add_cxxflags,odk_checkapi,\ $(gb_CXXFLAGS_Wundef) \ + $(gb_CXX03FLAGS) \ )) $(eval $(call gb_CppunitTest_use_libraries,odk_checkapi,\ diff --git a/odk/qa/checkapi/checkapi.cxx b/odk/qa/checkapi/checkapi.cxx index 96783efb08d0..29ec390327ec 100644 --- a/odk/qa/checkapi/checkapi.cxx +++ b/odk/qa/checkapi/checkapi.cxx @@ -20,6 +20,12 @@ #error Build system problem, RTL_USING using should not be set here. #endif +// Additionally, check that public API headers build also with C++03. + +//#if __cplusplus >= 201103L +//#error Build system problem, C++03 should be used here. +//#endif + // This module contains no tests, this is for the build system. #include <cppunit/plugin/TestPlugIn.h> |