Skip to content

Commit

Permalink
move unused 'random' function to deactivated block
Browse files Browse the repository at this point in the history
  • Loading branch information
christianrauch committed Jan 21, 2024
1 parent e4970f7 commit 1232293
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions common/g2d.c
Original file line number Diff line number Diff line change
Expand Up @@ -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]));
Expand Down Expand Up @@ -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[])
Expand Down

0 comments on commit 1232293

Please sign in to comment.