Skip to content

Commit 3936879

Browse files
Marcus GroeberMarcus Groeber
authored andcommitted
win32: move _USE_MATH_DEFINES before includes to ensure M_PI is defined
1 parent bc191d6 commit 3936879

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/tts/tts.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1+
#define _USE_MATH_DEFINES // For M_PI on MSVC
2+
13
#include "arg.h"
24
#include "common.h"
35
#include "sampling.h"
46
#include "log.h"
57
#include "llama.h"
68

7-
#define _USE_MATH_DEFINES // For M_PI on MSVC
8-
99
#include <algorithm>
1010
#include <cmath>
1111
#include <cstdio>

0 commit comments

Comments
 (0)