From d28110b8784ba84f274bce3a8dfea5aa9642d243 Mon Sep 17 00:00:00 2001 From: Qianqian Fang Date: Fri, 29 Nov 2024 18:16:58 -0500 Subject: [PATCH] [ci] fix windows-2019 gcc error --- src/mmc_rand_common.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mmc_rand_common.h b/src/mmc_rand_common.h index 13b14f0f..3422ed6f 100644 --- a/src/mmc_rand_common.h +++ b/src/mmc_rand_common.h @@ -38,6 +38,10 @@ #ifndef _MMC_RNG_COMMON_H #define _MMC_RNG_COMMON_H +#ifndef M_PI + #define M_PI 3.14159265358979323846 +#endif + #define TWO_PI (M_PI*2.0) #define EPS 1e-6f #define EPS2 0.1*EPS