This is an automated email from the ASF dual-hosted git repository.

janc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git


The following commit(s) were added to refs/heads/master by this push:
     new 55f777272 nimble/transport: Use #ifdef MYNEWT instead of #if MYNEWT
55f777272 is described below

commit 55f777272dd233d5625fc7a69fb5418959e68beb
Author: Deomid rojer Ryabkov <[email protected]>
AuthorDate: Tue Mar 31 23:25:26 2026 +0300

    nimble/transport: Use #ifdef MYNEWT instead of #if MYNEWT
    
    #if on an undefined macro triggers -Wundef. Use #ifdef for
    conditional inclusion checks.
---
 nimble/transport/src/rx_task.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/nimble/transport/src/rx_task.c b/nimble/transport/src/rx_task.c
index 957ab7907..a729a86f6 100644
--- a/nimble/transport/src/rx_task.c
+++ b/nimble/transport/src/rx_task.c
@@ -19,7 +19,7 @@
 
 #include <assert.h>
 #include <syscfg/syscfg.h>
-#if MYNEWT
+#ifdef MYNEWT
 #include <os/os_task.h>
 #endif
 #include <os/os_mbuf.h>
@@ -31,7 +31,7 @@
 static ble_transport_rx_func_t *rx_func;
 static void *rx_func_arg;
 
-#if MYNEWT
+#ifdef MYNEWT
 OS_TASK_STACK_DEFINE(rx_stack, MYNEWT_VAL(BLE_TRANSPORT_RX_TASK_STACK_SIZE));
 static struct os_task rx_task;
 #endif

Reply via email to