Skip to content

Commit 2e0eb12

Browse files
committed
Add guard conditions to tests includes
1 parent 5f7ba84 commit 2e0eb12

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

test/unitary/session/Session.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@ extern "C"
2323

2424
#include <c/util/time.c>
2525

26+
#ifdef UCLIENT_PROFILE_BROKERLESS
2627
#include <c/brokerless/brokerless.c>
2728
#include <c/brokerless/udp_transport_broadcast_posix.c>
29+
#endif // UCLIENT_PROFILE_BROKERLESS
2830

2931
#undef UXR_MESSAGE_LOG
3032
#undef UXR_SERIALIZATION_LOG

test/unitary/session/WriteReadAccess.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@ extern "C"
2121

2222
#include <c/util/time.c>
2323

24+
#ifdef UCLIENT_PROFILE_BROKERLESS
2425
#include <c/brokerless/brokerless.c>
2526
#include <c/brokerless/udp_transport_broadcast_posix.c>
27+
#endif // UCLIENT_PROFILE_BROKERLESS
2628
}
2729

2830
#include <gtest/gtest.h>

0 commit comments

Comments
 (0)