Skip to content

Commit 51a569f

Browse files
committed
Fixes some compilation issues on Mac
1 parent 6b2b89a commit 51a569f

File tree

3 files changed

+1
-7
lines changed

3 files changed

+1
-7
lines changed

examples/protonect/src/cpu_depth_packet_processor.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,7 @@
3636

3737
#include <limits>
3838

39-
#if defined(WIN32)
40-
#define _USE_MATH_DEFINES
4139
#include <math.h>
42-
#endif
4340

4441
#include <cmath>
4542
#include <limits>

examples/protonect/src/opencl_depth_packet_processor.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,7 @@
3535
#include <fstream>
3636
#include <sstream>
3737

38-
#if defined(WIN32)
39-
#define _USE_MATH_DEFINES
4038
#include <math.h>
41-
#endif
4239

4340
#define __CL_ENABLE_EXCEPTIONS
4441
#ifdef __APPLE__

examples/protonect/viewer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ bool Viewer::render()
132132
y += height;
133133
}
134134

135-
Vertex bl = { -1.0f, -1.0f, 0.0f, 0.0f }, br = { 1.0f, -1.0f, frame->width, 0.0f }, tl = { -1.0f, 1.0f, 0.0f, frame->height }, tr = { 1.0f, 1.0f, frame->width, frame->height };
135+
Vertex bl = { -1.0f, -1.0f, 0.0f, 0.0f }, br = { 1.0f, -1.0f, static_cast<float>(frame->width), 0.0f }, tl = { -1.0f, 1.0f, 0.0f, static_cast<float>(frame->height) }, tr = { 1.0f, 1.0f, static_cast<float>(frame->width), static_cast<float>(frame->height) };
136136
Vertex vertices[] = {
137137
bl, tl, tr, tr, br, bl
138138
};

0 commit comments

Comments
 (0)