diff options
author | Roman Bapst <romanbapst@yahoo.de> | 2014-11-13 13:48:18 +0100 |
---|---|---|
committer | Roman Bapst <romanbapst@yahoo.de> | 2014-11-13 13:48:18 +0100 |
commit | d9314653826d36b0a9723d69a291220245b3f699 (patch) | |
tree | 3b4cc3bcbf00d5e4b0dd9a063855eea34be935dd /src/lib/mathlib | |
parent | 003b326c7731b0f3b9b139ae008d6e4d07cefab8 (diff) | |
download | px4-firmware-d9314653826d36b0a9723d69a291220245b3f699.tar.gz px4-firmware-d9314653826d36b0a9723d69a291220245b3f699.tar.bz2 px4-firmware-d9314653826d36b0a9723d69a291220245b3f699.zip |
added ifdef guard
Diffstat (limited to 'src/lib/mathlib')
-rw-r--r-- | src/lib/mathlib/math/Limits.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/mathlib/math/Limits.cpp b/src/lib/mathlib/math/Limits.cpp index c593936ce..e16f33bd6 100644 --- a/src/lib/mathlib/math/Limits.cpp +++ b/src/lib/mathlib/math/Limits.cpp @@ -45,7 +45,10 @@ namespace math { -#define M_PI_F 3.14159265358979323846 + +#ifndef CONFIG_ARCH_ARM +#define M_PI_F 3.14159265358979323846f +#endif float __EXPORT min(float val1, float val2) { |