Moved min/max macros from global scope in header file to translation unit exlusice c files

This commit is contained in:
timoxd7
2022-11-22 10:07:45 +01:00
committed by Szymon Janc
parent 639da1a0f3
commit 32f2ab3ab6
7 changed files with 51 additions and 8 deletions
-8
View File
@@ -26,14 +26,6 @@
extern "C" {
#endif
#ifndef min
#define min(a, b) ((a)<(b)?(a):(b))
#endif
#ifndef max
#define max(a, b) ((a)>(b)?(a):(b))
#endif
#include "syscfg/syscfg.h"
#include "nimble/nimble_npl.h"
+8
View File
@@ -41,6 +41,14 @@
#include <string.h>
#include <limits.h>
#ifndef min
#define min(a, b) ((a)<(b)?(a):(b))
#endif
#ifndef max
#define max(a, b) ((a)>(b)?(a):(b))
#endif
/**
* @addtogroup OSKernel
* @{