Skip to content

Commit 2a55474

Browse files
committed
define M_PI if it's not, eg. if compiling with -std=c99
1 parent 73a482b commit 2a55474

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/denoise.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@
2929
#include "config.h"
3030
#endif
3131

32+
#ifndef M_PI
33+
#define M_PI (3.14159265358979323846)
34+
#endif
35+
3236
#include <stdlib.h>
3337
#include <string.h>
3438
#include <stdio.h>

0 commit comments

Comments
 (0)