Skip to content

Commit 1f23ff9

Browse files
committed
Opencl uses M_PI, which is defined <math.h> with _USE_MATH_DEFINES defined.
1 parent 5466b57 commit 1f23ff9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

examples/protonect/src/opencl_depth_packet_processor.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@
3333
#include <fstream>
3434
#include <sstream>
3535

36+
#if defined(WIN32)
37+
#define _USE_MATH_DEFINES
38+
#include <math.h>
39+
#endif
40+
3641
#define __CL_ENABLE_EXCEPTIONS
3742
#ifdef __APPLE__
3843
#include <OpenCL/cl.hpp>

0 commit comments

Comments
 (0)