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)