Skip to content

Commit 6f9ec3f

Browse files
committed
Merge pull request #374 from fran6co/win32
Fixes Windows compilation, closes #373
2 parents 60fde3f + 2e770d4 commit 6f9ec3f

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

examples/protonect/src/cpu_depth_packet_processor.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333

3434
#include <limits>
3535

36+
#define _USE_MATH_DEFINES
3637
#include <math.h>
3738

3839
#include <cmath>

examples/protonect/src/opencl_depth_packet_processor.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
#include <fstream>
3333
#include <sstream>
3434

35+
#define _USE_MATH_DEFINES
3536
#include <math.h>
3637

3738
#define __CL_ENABLE_EXCEPTIONS

examples/protonect/src/registration.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
* either License.
2525
*/
2626

27+
#define _USE_MATH_DEFINES
2728
#include <math.h>
2829
#include <libfreenect2/registration.h>
2930

0 commit comments

Comments
 (0)