workaround for error building with clang and quiet some warnings building without libmv.

This commit is contained in:
Campbell Barton
2011-12-31 03:01:18 +00:00
parent 1d152c77a5
commit 65c74f1570
3 changed files with 8 additions and 3 deletions

View File

@@ -94,7 +94,9 @@ typedef unsigned long uintptr_t;
#include <stdint.h>
/* XXX */
#ifndef uint64_t
#ifndef UINT64_MAX
# define UINT64_MAX 18446744073709551615
typedef uint8_t u_int8_t;
typedef uint16_t u_int16_t;
typedef uint32_t u_int32_t;

View File

@@ -1683,6 +1683,7 @@ int BKE_tracking_can_reconstruct(MovieTracking *tracking, MovieTrackingObject *o
#else
BLI_strncpy(error_msg, "Blender is compiled without motion tracking library", error_size);
(void)tracking;
(void)object;
return 0;
#endif
@@ -2274,6 +2275,7 @@ void BKE_tracking_detect_fast(MovieTracking *tracking, ListBase *tracksbase, ImB
libmv_destroyFeatures(features);
#else
(void)tracking;
(void)tracksbase;
(void)ibuf;
(void)framenr;
(void)margin;

View File

@@ -87,7 +87,8 @@ typedef unsigned long uintptr_t;
#include <stdint.h>
/* XXX */
#ifndef uint64_t
#ifndef UINT64_MAX
# define UINT64_MAX 18446744073709551615
typedef uint8_t u_int8_t;
typedef uint16_t u_int16_t;
typedef uint32_t u_int32_t;