summaryrefslogtreecommitdiff
path: root/odk/qa
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-12-18 16:34:46 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-12-18 16:39:43 +0100
commit86ba184394094c7c043a505a20a0b1b8977f73d7 (patch)
tree97479111778906db083c6b3ffe137d25f7ad3cfb /odk/qa
parent1cd9420755dc5d5435bf564a992b727c455a3d73 (diff)
Introduce gb_*_set_external_code
...to harmonize the mechanisms to not define LIBO_INTERNAL_ONLY for extension code and CppunitTest_odk_checkapi. (It also needs to revert any -Wundef, as the config_host/config_*.h files will not be included, so the HAVE_* macros will be undefined.) This obsoletes the need for RTL_DISABLE_FAST_STRING. Change-Id: If5eacba80c349efb90762aade8f2ea6d2db7e314
Diffstat (limited to 'odk/qa')
-rw-r--r--odk/qa/checkapi/checkapi.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/odk/qa/checkapi/checkapi.cxx b/odk/qa/checkapi/checkapi.cxx
index 67e11c6b2ea6..c76b4feec373 100644
--- a/odk/qa/checkapi/checkapi.cxx
+++ b/odk/qa/checkapi/checkapi.cxx
@@ -8,7 +8,9 @@
*/
// Acts as if building outside of LO.
-#undef LIBO_INTERNAL_ONLY
+#ifdef LIBO_INTERNAL_ONLY
+#error Build system problem, LIBO_INTERNAL_ONLY should not be set here.
+#endif
// The whole purpose of this test is to check that public API headers
// build even without RTL_USING (which enables using e.g. rtl::OUString
@@ -17,7 +19,7 @@
// for uses of such types.
#ifdef RTL_USING
-#error Build system problem, RTL_USING using should not be set here.
+#error Build system problem, RTL_USING should not be set here.
#endif
// Additionally, check that public API headers build also with C++03.