diff options
| author | jackpoz <giacomopoz@gmail.com> | 2014-05-25 15:33:56 +0200 |
|---|---|---|
| committer | jackpoz <giacomopoz@gmail.com> | 2014-05-25 15:48:06 +0200 |
| commit | b4327bfc69ce7e1243f53256b8a55f8c5c0ac2f1 (patch) | |
| tree | 0cea147150543624577f6a8ba5bc42cc52ffc3ba /src/server/shared | |
| parent | 2f0f8f8018f4786b9e3e3eab9a9ec17c02668923 (diff) | |
Core/Misc: Fix no-pch build
Diffstat (limited to 'src/server/shared')
| -rw-r--r-- | src/server/shared/Packets/ByteBuffer.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/server/shared/Packets/ByteBuffer.h b/src/server/shared/Packets/ByteBuffer.h index e06556423aa..9f766a72d19 100644 --- a/src/server/shared/Packets/ByteBuffer.h +++ b/src/server/shared/Packets/ByteBuffer.h @@ -31,6 +31,7 @@ #include <vector> #include <cstring> #include <time.h> +#include <math.h> // Root of ByteBuffer exception hierarchy class ByteBufferException : public std::exception @@ -241,7 +242,7 @@ class ByteBuffer ByteBuffer &operator>>(float &value) { value = read<float>(); - if (!isfinite(value)) + if (!std::isfinite(value)) throw ByteBufferException(); return *this; } @@ -249,7 +250,7 @@ class ByteBuffer ByteBuffer &operator>>(double &value) { value = read<double>(); - if (!isfinite(value)) + if (!std::isfinite(value)) throw ByteBufferException(); return *this; } |
