Skip to content

Commit 01c119a

Browse files
committed
win32: Fix c_sync build
Signed-off-by: Benn Snyder <[email protected]>
1 parent e900868 commit 01c119a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

wrappers/c_sync/libfreenect_sync.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ typedef struct sync_kinect {
5050
typedef int (*set_buffer_t)(freenect_device *dev, void *buf);
5151

5252
#define MAX_KINECTS 64
53-
static sync_kinect_t *kinects[MAX_KINECTS] = {};
53+
static sync_kinect_t *kinects[MAX_KINECTS] = { 0 };
5454
static freenect_context *ctx;
5555
static int thread_running = 0;
5656
static pthread_t thread;

wrappers/c_sync/libfreenect_sync.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ FREENECTAPI_SYNC int freenect_sync_get_video_with_res(void **video, uint32_t *ti
6565
Nonzero on error.
6666
*/
6767

68-
int freenect_sync_get_video(void **video, uint32_t *timestamp, int index, freenect_video_format fmt);
68+
FREENECTAPI_SYNC int freenect_sync_get_video(void **video, uint32_t *timestamp, int index, freenect_video_format fmt);
6969
/* Does the exact same as above, but with a default resolution,
7070
so backwards compatibilty is maintained.
7171
The Resolution is kept at the default FREENECT_RESOLUTION_MEDIUM
@@ -89,7 +89,7 @@ FREENECTAPI_SYNC int freenect_sync_get_depth_with_res(void **depth, uint32_t *ti
8989
Nonzero on error.
9090
*/
9191

92-
int freenect_sync_get_depth(void **depth, uint32_t *timestamp, int index, freenect_depth_format fmt);
92+
FREENECTAPI_SYNC int freenect_sync_get_depth(void **depth, uint32_t *timestamp, int index, freenect_depth_format fmt);
9393
/* Again, a wrapper function to keep backward compatibility.
9494
The Resolution is kept at the default FREENECT_RESOLUTION_MEDIUM
9595

0 commit comments

Comments
 (0)