mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Merge pull request #2382 from TheMagnetar/master
Removed pedantic errors and redefinition of M_PI variable
This commit is contained in:
commit
60684c584a
@ -20,7 +20,7 @@ option(USE_STATIC_LINKING "USE_STATIC_LINKING" ON)
|
||||
|
||||
|
||||
if(CMAKE_COMPILER_IS_GNUCXX)
|
||||
SET(CMAKE_CXX_FLAGS "-std=c++11 -march=i686 -m32 -O2 -s -fPIC -fpermissive")
|
||||
SET(CMAKE_CXX_FLAGS "-std=c++11 -pedantic -pedantic-errors -march=i686 -m32 -O2 -s -fPIC -fpermissive")
|
||||
set(CMAKE_FIND_LIBRARY_SUFFIXES ".a")
|
||||
set(CMAKE_SHARED_LINKER_FLAGS "-static-libgcc -static-libstdc++")
|
||||
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
|
@ -5,7 +5,6 @@
|
||||
#include <unordered_map>
|
||||
#include <random>
|
||||
|
||||
#define M_PI 3.14159265358979323846f
|
||||
#define GRAVITY 9.80665f
|
||||
#define ABSOLUTE_ZERO_IN_CELSIUS -273.15f
|
||||
#define KELVIN(t) (t - ABSOLUTE_ZERO_IN_CELSIUS)
|
||||
|
@ -21,7 +21,7 @@
|
||||
|
||||
extern "C" {
|
||||
EXPORT void __stdcall RVExtension(char *output, int outputSize, const char *function);
|
||||
};
|
||||
}
|
||||
|
||||
std::vector<std::string> splitString(const std::string & input) {
|
||||
std::istringstream ss(input);
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
extern "C" {
|
||||
EXPORT void __stdcall RVExtension(char *output, int outputSize, const char *function);
|
||||
};
|
||||
}
|
||||
|
||||
std::string gClipboardData;
|
||||
|
||||
|
@ -67,5 +67,5 @@ namespace ace {
|
||||
|
||||
animation::~animation() {
|
||||
}
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -65,5 +65,5 @@ namespace ace {
|
||||
//ace::vector3<float> axis_dir;
|
||||
};
|
||||
typedef std::shared_ptr<animation> animation_p;
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -53,5 +53,5 @@ namespace ace {
|
||||
|
||||
};
|
||||
typedef std::shared_ptr<model> model_p;
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -70,5 +70,5 @@ namespace ace {
|
||||
};
|
||||
typedef std::shared_ptr<model_info> model_info_p;
|
||||
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -13,5 +13,5 @@ namespace ace {
|
||||
|
||||
model_p load(const std::string &);
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -32,5 +32,5 @@ namespace ace {
|
||||
std::vector<bone_p> all_bones;
|
||||
};
|
||||
typedef std::shared_ptr<skeleton> skeleton_p;
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -31,4 +31,4 @@ namespace ace {
|
||||
};
|
||||
|
||||
typedef transform_matrix_base<float> transform_matrix;
|
||||
};
|
||||
}
|
||||
|
@ -168,4 +168,4 @@ namespace ace {
|
||||
T _x;
|
||||
T _y;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
@ -27,7 +27,7 @@
|
||||
|
||||
extern "C" {
|
||||
EXPORT void __stdcall RVExtension(char *output, int outputSize, const char *function);
|
||||
};
|
||||
}
|
||||
|
||||
std::vector<std::string> splitString(std::string input) {
|
||||
std::istringstream ss(input);
|
||||
|
@ -14,7 +14,7 @@
|
||||
|
||||
extern "C" {
|
||||
EXPORT void __stdcall RVExtension(char *output, int outputSize, const char *function);
|
||||
};
|
||||
}
|
||||
|
||||
std::vector<std::string> parseExtensionInput(const std::string& input)
|
||||
{
|
||||
|
@ -18,7 +18,7 @@
|
||||
|
||||
extern "C" {
|
||||
__declspec (dllexport) void __stdcall RVExtension(char *output, int outputSize, const char *function);
|
||||
};
|
||||
}
|
||||
|
||||
std::string getImagePathFromStructuredText(const std::string & input) {
|
||||
std::string returnValue = "";
|
||||
|
Loading…
Reference in New Issue
Block a user