mirror of
https://github.com/edubart/otclient.git
synced 2025-11-03 20:26:23 +01:00
Visual Studio 2013 Compatibility
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user