From c786b846d0325c4f091752620e356055b39b8a5f Mon Sep 17 00:00:00 2001 From: lucianom Date: Wed, 4 Mar 2020 22:05:36 +0000 Subject: [PATCH] Define MIN if not defined --- lib_xua/src/core/endpoint0/xua_endpoint0.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib_xua/src/core/endpoint0/xua_endpoint0.c b/lib_xua/src/core/endpoint0/xua_endpoint0.c index ee23714d..966f6321 100755 --- a/lib_xua/src/core/endpoint0/xua_endpoint0.c +++ b/lib_xua/src/core/endpoint0/xua_endpoint0.c @@ -71,6 +71,9 @@ extern void device_reboot(void); #if( 0 < HID_CONTROLS ) #include "xua_hid.h" #endif +#ifndef MIN +#define MIN(a,b) (((a)<(b))?(a):(b)) +#endif unsigned int DFU_mode_active = 0; // 0 - App active, 1 - DFU active