From 8b268995d9365ae105a6269f7faad5ba1eccfcf6 Mon Sep 17 00:00:00 2001 From: Christian Rauch Date: Sun, 21 Jan 2024 15:29:25 +0100 Subject: [PATCH] move unused 'random' function to deactivated block --- common/g2d.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/common/g2d.c b/common/g2d.c index 4645f206..91bbcabc 100644 --- a/common/g2d.c +++ b/common/g2d.c @@ -33,13 +33,6 @@ either expressed or implied, of the Regents of The University of Michigan. #include "g2d.h" #include "common/math_util.h" -#ifdef _WIN32 -static inline long int random(void) -{ - return rand(); -} -#endif - double g2d_distance(const double a[2], const double b[2]) { return sqrtf(sq(a[0]-b[0]) + sq(a[1]-b[1])); @@ -725,6 +718,13 @@ int g2d_polygon_rasterize(const zarray_t *poly, double y, double *x) */ #if 0 +#ifdef _WIN32 +static inline long int random(void) +{ + return rand(); +} +#endif + #include "timeprofile.h" int main(int argc, char *argv[])