aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2023-04-19 11:11:57 +0200
committerStefan Boberg <[email protected]>2023-04-19 11:11:57 +0200
commit8fe9a0fcfabee7772bab3ff47cf90aebfc33243e (patch)
tree6bb06ba66215dfd25b653fb7266ee98fa0997152
parenttweaks for enabling unity builds (diff)
downloadzen-8fe9a0fcfabee7772bab3ff47cf90aebfc33243e.tar.xz
zen-8fe9a0fcfabee7772bab3ff47cf90aebfc33243e.zip
put forcelink calls into ZEN_WITH_TESTS blocks
-rw-r--r--zenhttp/zenhttp.cpp4
-rw-r--r--zenstore/zenstore.cpp4
2 files changed, 8 insertions, 0 deletions
diff --git a/zenhttp/zenhttp.cpp b/zenhttp/zenhttp.cpp
index 1adca30e8..d49b3818f 100644
--- a/zenhttp/zenhttp.cpp
+++ b/zenhttp/zenhttp.cpp
@@ -2,6 +2,8 @@
#include <zenhttp/zenhttp.h>
+#if ZEN_WITH_TESTS
+
#include <zenhttp/httpclient.h>
#include <zenhttp/httpserver.h>
#include <zenhttp/httpshared.h>
@@ -16,3 +18,5 @@ zenhttp_forcelinktests()
}
} // namespace zen
+
+#endif
diff --git a/zenstore/zenstore.cpp b/zenstore/zenstore.cpp
index d8e05a334..308743144 100644
--- a/zenstore/zenstore.cpp
+++ b/zenstore/zenstore.cpp
@@ -2,6 +2,8 @@
#include "zenstore/zenstore.h"
+#if ZEN_WITH_TESTS
+
#include <zenstore/blockstore.h>
#include <zenstore/gc.h>
#include <zenstore/hashkeyset.h>
@@ -26,3 +28,5 @@ zenstore_forcelinktests()
}
} // namespace zen
+
+#endif