Skip to content

Commit

Permalink
fix: add unstable token to config..h file
Browse files Browse the repository at this point in the history
  • Loading branch information
jean-roland committed Sep 3, 2024
1 parent cb873fa commit 50e3b47
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion include/zenoh-pico/api/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ _Z_OWNED_TYPE_VALUE(_z_value_t, reply_err)
* (unstable) z_reliability_t reliability: The subscription reliability value.
*/
typedef struct {
#ifdef Z_FEATURE_UNSTABLE_API
#if Z_FEATURE_UNSTABLE_API == 1
z_reliability_t reliability;
#else
uint8_t __dummy; // Just to avoid empty structures that might cause undefined behavior
Expand Down
1 change: 1 addition & 0 deletions include/zenoh-pico/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#define Z_BATCH_MULTICAST_SIZE 8096
#define Z_CONFIG_SOCKET_TIMEOUT 100

#define Z_FEATURE_UNSTABLE_API 0
#define Z_FEATURE_MULTI_THREAD 1
#define Z_FEATURE_PUBLICATION 1
#define Z_FEATURE_SUBSCRIPTION 1
Expand Down
1 change: 1 addition & 0 deletions include/zenoh-pico/config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#define Z_BATCH_MULTICAST_SIZE @BATCH_MULTICAST_SIZE@
#define Z_CONFIG_SOCKET_TIMEOUT @Z_CONFIG_SOCKET_TIMEOUT@

#define Z_FEATURE_UNSTABLE_API @Z_FEATURE_UNSTABLE_API@
#define Z_FEATURE_MULTI_THREAD @Z_FEATURE_MULTI_THREAD@
#define Z_FEATURE_PUBLICATION @Z_FEATURE_PUBLICATION@
#define Z_FEATURE_SUBSCRIPTION @Z_FEATURE_SUBSCRIPTION@
Expand Down

0 comments on commit 50e3b47

Please sign in to comment.