diff --git a/include/nuttx/mqueue.h b/include/nuttx/mqueue.h index 1e7121284c..cf4d8d2cc5 100644 --- a/include/nuttx/mqueue.h +++ b/include/nuttx/mqueue.h @@ -37,7 +37,7 @@ #include #include -#if CONFIG_MQ_MAXMSGSIZE > 0 +#if defined(CONFIG_MQ_MAXMSGSIZE) && (CONFIG_MQ_MAXMSGSIZE > 0) /**************************************************************************** * Pre-processor Definitions