Commit 146c7748 authored by Robert Menzel's avatar Robert Menzel

VS 2008 compatibility

parent f1f04f4b
......@@ -153,8 +153,8 @@ public:
{
unsigned int i = 0;
while(i < mKeypoints.size() && mKeypoints[i].time < _time) i++;
mKeypoints.insert(mKeypoints.begin()+i,(key_point_t){_data, _time});
key_point_t keyPoint = {_data, _time};
mKeypoints.insert( mKeypoints.begin()+i, keyPoint );
}
protected:
......
......@@ -6,9 +6,21 @@
#ifndef ACGL_TYPES_HH
#define ACGL_TYPES_HH
#include <stdint.h>
#if (_MSC_VER < 1600 && _MSC_VER >= 1500)
// stdint.h not shipped with VS 2008
typedef char int8_t;
typedef unsigned char uint8_t;
typedef short int16_t;
typedef unsigned short uint16_t;
typedef int int32_t;
typedef unsigned int uint32_t;
typedef __int64 int64_t;
typedef unsigned __int64 uint64_t;
#else
# include <stdint.h>
#endif
namespace ACGL{
namespace ACGL {
/*
* Our datatypes have fixed bit width like the C99 types from stdint,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment