Visual Studio 2013 Compatibility

This commit is contained in:
dalkon
2013-11-12 13:47:53 +01:00
committed by Eduardo Bart
parent d3e97d33c7
commit c9597d6682
11 changed files with 67 additions and 18 deletions

View File

@@ -23,11 +23,11 @@
#ifndef FRAMEWORK_CONST_H
#define FRAMEWORK_CONST_H
#include "stdext/compiler.h"
#define DEG_TO_RAD (acos(-1)/180.0)
#define RAD_TO_DEC (180.0/acos(-1))
#define BUILD_COMPILER "gcc " __VERSION__
#ifndef BUILD_COMMIT
#define BUILD_COMMIT "devel"
#endif
@@ -52,9 +52,13 @@
namespace Fw
{
#ifdef _MSC_VER
static const float pi = 3.14159265;
static const float MIN_ALPHA = 0.003f;
#else
constexpr float pi = 3.14159265;
constexpr float MIN_ALPHA = 0.003f;
#endif
enum Key : unsigned char {
KeyUnknown = 0,
KeyEscape = 1,