Skip to content

Commit

Permalink
Fix OSCE build (missing M_PI on Windows)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmvalin committed Dec 13, 2023
1 parent 09968e5 commit bac4988
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dnn/nndsp.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@

#include <math.h>

#ifndef M_PI
#define M_PI 3.141592653
#endif

#define SET_ZERO(x) memset(x, 0, sizeof(x))
#define KERNEL_INDEX(i_out_channels, i_in_channels, i_kernel) ((((i_out_channels) * in_channels) + (i_in_channels)) * kernel_size + (i_kernel))

Expand Down

0 comments on commit bac4988

Please sign in to comment.