Skip to content

Commit 2e770d4

Browse files
committed
Fixes Windows compilation
1 parent 60fde3f commit 2e770d4

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

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)