From 23727e59aa6a7693b696aac37fd8b6eb5922fc3c Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sat, 13 Apr 2019 15:42:46 -0600 Subject: [PATCH] Fix two malformed pre-preprocessor conditionals. --- configs/xmc4500-relax/src/xmc4_spi.c | 2 +- include/nuttx/nx/nxcursor.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configs/xmc4500-relax/src/xmc4_spi.c b/configs/xmc4500-relax/src/xmc4_spi.c index 1beb039238..04c5a45be9 100644 --- a/configs/xmc4500-relax/src/xmc4_spi.c +++ b/configs/xmc4500-relax/src/xmc4_spi.c @@ -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 diff --git a/include/nuttx/nx/nxcursor.h b/include/nuttx/nx/nxcursor.h index 023cdaadc2..ad84283912 100644 --- a/include/nuttx/nx/nxcursor.h +++ b/include/nuttx/nx/nxcursor.h @@ -49,7 +49,7 @@ #include #include -#ifndef defined(CONFIG_NX_SWCURSOR) || defined(CONFIG_NX_HWCURSOR) +#if defined(CONFIG_NX_SWCURSOR) || defined(CONFIG_NX_HWCURSOR) #undef EXTERN #if defined(__cplusplus)