summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2020-03-12 16:46:28 -0700
committerRosen Penev <rosenp@gmail.com>2020-03-12 19:04:38 -0700
commit2db8bcc353ce4360a6dbe4c73afcaae1c27fce43 (patch)
tree82f385cbb1ead61319bfd16380ccd44cbf2da7c4 /src/client
parentc846ee0d1b603e141fc536078b920caedae3bf6f (diff)
replace stddef.h with cstddef
The former is deprecated with C++14. The standard says both are the same: The contents and meaning of the header<cstddef>are the same as the C standard library header<stddef.h>,except that it does not declare the type wchar_t, that it also declares the type byte and its associated operations (21.2.5), and as noted in 21.2.3 and 21.2.4. Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'src/client')
-rw-r--r--src/client/Client.hxx7
-rw-r--r--src/client/Response.hxx3
2 files changed, 4 insertions, 6 deletions
diff --git a/src/client/Client.hxx b/src/client/Client.hxx
index c94350b51..b9692ab48 100644
--- a/src/client/Client.hxx
+++ b/src/client/Client.hxx
@@ -31,12 +31,11 @@
#include <boost/intrusive/link_mode.hpp>
#include <boost/intrusive/list_hook.hpp>
-#include <set>
-#include <string>
+#include <cstddef>
#include <list>
#include <memory>
-
-#include <stddef.h>
+#include <set>
+#include <string>
class SocketAddress;
class UniqueSocketDescriptor;
diff --git a/src/client/Response.hxx b/src/client/Response.hxx
index b2c72cf48..437ee69ef 100644
--- a/src/client/Response.hxx
+++ b/src/client/Response.hxx
@@ -24,8 +24,7 @@
#include "util/Compiler.h"
#include <cstdarg>
-
-#include <stddef.h>
+#include <cstddef>
template<typename T> struct ConstBuffer;
class Client;