From 07cf4c9318f8cd96689190a79e20b59a8d09f84f Mon Sep 17 00:00:00 2001 From: Peter Thorson Date: Sat, 10 Dec 2011 07:16:13 -0600 Subject: [PATCH] header fixes for warnings --- src/common.hpp | 4 +++- src/roles/client.hpp | 7 +++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/common.hpp b/src/common.hpp index e94ee40ae1..bde85591d9 100644 --- a/src/common.hpp +++ b/src/common.hpp @@ -28,7 +28,9 @@ #ifndef WEBSOCKET_CONSTANTS_HPP #define WEBSOCKET_CONSTANTS_HPP -#define __STDC_LIMIT_MACROS +#ifndef __STDC_LIMIT_MACROS + #define __STDC_LIMIT_MACROS +#endif #include #include diff --git a/src/roles/client.hpp b/src/roles/client.hpp index 232201de42..be9f218605 100644 --- a/src/roles/client.hpp +++ b/src/roles/client.hpp @@ -31,6 +31,11 @@ #include "../endpoint.hpp" #include "../uri.hpp" +#ifndef __STDC_LIMIT_MACROS + #define __STDC_LIMIT_MACROS +#endif +#include + #include #include #include @@ -38,8 +43,6 @@ #include #include -#define __STDC_LIMIT_MACROS -#include using boost::asio::ip::tcp;