Skip to content

Commit 8497dcb

Browse files
The new HAS_OT_NETIF_THREAD_HOST is from an enum, so the ifndef check would not work on it by default
1 parent 1ac77d7 commit 8497dcb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/inet/UDPEndPointImplOpenThread.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@
2828
#include <system/SystemPacketBuffer.h>
2929

3030
// Temporary until we manage to update the OT version in the CI
31-
#ifndef OT_NETIF_THREAD_HOST
31+
// Define a macro if OT_NETIF_THREAD_HOST is present in the enum
32+
#define HAS_OT_NETIF_THREAD_HOST (OT_NETIF_THREAD_HOST == OT_NETIF_THREAD_HOST)
33+
#ifndef HAS_OT_NETIF_THREAD_HOST
3234
#define OT_NETIF_THREAD_HOST OT_NETIF_THREAD
3335
#endif
3436

0 commit comments

Comments
 (0)