Update utils.h

This commit is contained in:
Oskar Weigl
2018-02-25 22:47:37 -08:00
committed by GitHub
parent c1f3733c6a
commit e2540d7eda
+3 -2
View File
@@ -70,9 +70,10 @@ extern "C" {
*/
#define STM_ID_GetUUID(x) ((x >= 0 && x < 3) ? (*(uint32_t *)(ID_UNIQUE_ADDRESS + 4 * (x))) : 0)
#ifndef M_PI
#define M_PI 3.14159265358979323846f
#ifdef M_PI
#undef M_PI
#endif
#define M_PI 3.14159265358979323846f
#define MACRO_MAX(x, y) (((x) > (y)) ? (x) : (y))
#define MACRO_MIN(x, y) (((x) < (y)) ? (x) : (y))