Fix two malformed pre-preprocessor conditionals.

This commit is contained in:
Gregory Nutt 2019-04-13 15:42:46 -06:00
parent c4f618e590
commit 23727e59aa
2 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ void weak_function xmc4_spidev_initialize(void)
/* Configure SPI2 chip selects */
#ifdef CONFIG_XMC4_SPI2 && defined(CONFIG_SENSORS_MAX6675)
#if define(CONFIG_XMC4_SPI2) && defined(CONFIG_SENSORS_MAX6675)
(void)xmc4_gpio_config(GPIO_CS_MAX6675);
#endif

View File

@ -49,7 +49,7 @@
#include <nuttx/nx/nx.h>
#include <nuttx/nx/nxtypes.h>
#ifndef defined(CONFIG_NX_SWCURSOR) || defined(CONFIG_NX_HWCURSOR)
#if defined(CONFIG_NX_SWCURSOR) || defined(CONFIG_NX_HWCURSOR)
#undef EXTERN
#if defined(__cplusplus)