net: lwm2m: Prevent wundef warnings

If -Werror is used compilation fails due to wundef warning.

Signed-off-by: Christoph Schnetzler <christoph.schnetzler@husqvarnagroup.com>
This commit is contained in:
Christoph Schnetzler 2022-10-28 11:57:23 +02:00 committed by Stephanos Ioannidis
commit 0dd14404e1

View file

@ -14,7 +14,7 @@
#include "lwm2m_registry.h"
#define LWM2M_PROTOCOL_VERSION_MAJOR 1
#if CONFIG_LWM2M_VERSION_1_1
#if defined(CONFIG_LWM2M_VERSION_1_1)
#define LWM2M_PROTOCOL_VERSION_MINOR 1
#else
#define LWM2M_PROTOCOL_VERSION_MINOR 0