From 42c9475203c67242a1f02ea34574ffd81a90f3d8 Mon Sep 17 00:00:00 2001 From: jflyper Date: Mon, 24 Jun 2019 15:54:04 +0900 Subject: [PATCH] [H7][LIB][USB] usbd_def: disable insane defs of MIN and MAX --- .../ST/STM32_USB_Device_Library/Core/Inc/usbd_def.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/main/STM32H7/Middlewares/ST/STM32_USB_Device_Library/Core/Inc/usbd_def.h b/lib/main/STM32H7/Middlewares/ST/STM32_USB_Device_Library/Core/Inc/usbd_def.h index c210c1fd0d..789bb090af 100755 --- a/lib/main/STM32H7/Middlewares/ST/STM32_USB_Device_Library/Core/Inc/usbd_def.h +++ b/lib/main/STM32H7/Middlewares/ST/STM32_USB_Device_Library/Core/Inc/usbd_def.h @@ -274,8 +274,9 @@ typedef struct _USBD_HandleTypeDef #define LOBYTE(x) ((uint8_t)(x & 0x00FFU)) #define HIBYTE(x) ((uint8_t)((x & 0xFF00U) >> 8U)) -#define MIN(a, b) (((a) < (b)) ? (a) : (b)) -#define MAX(a, b) (((a) > (b)) ? (a) : (b)) +// It's insane to define these here. +//#define MIN(a, b) (((a) < (b)) ? (a) : (b)) +//#define MAX(a, b) (((a) > (b)) ? (a) : (b)) #if defined ( __GNUC__ )