Commit 4b497b82 authored by Rosen Penev's avatar Rosen Penev Committed by Facebook Github Bot

Get rid of deprecated headers (#1254)

Summary:
Found with modernize-deprecated-headers

Note that C++14 deprecated these.
Signed-off-by: default avatarRosen Penev <rosenp@gmail.com>
Pull Request resolved: https://github.com/facebook/folly/pull/1254

Reviewed By: Orvid

Differential Revision: D18369623

Pulled By: yfeldblum

fbshipit-source-id: e824bc5474f94fa4fe359ac6a4899eeaaddbb13b
parent c811498a
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
#include <chrono> #include <chrono>
#include <time.h> #include <ctime>
#ifndef _WIN32 #ifndef _WIN32
#define _GNU_SOURCE 1 #define _GNU_SOURCE 1
......
...@@ -18,10 +18,10 @@ ...@@ -18,10 +18,10 @@
#include <folly/ScopeGuard.h> #include <folly/ScopeGuard.h>
#include <folly/hash/Hash.h> #include <folly/hash/Hash.h>
#include <folly/portability/SysSyscall.h> #include <folly/portability/SysSyscall.h>
#include <stdint.h>
#include <string.h>
#include <array> #include <array>
#include <cerrno> #include <cerrno>
#include <cstdint>
#include <cstring>
#include <folly/synchronization/ParkingLot.h> #include <folly/synchronization/ParkingLot.h>
......
...@@ -27,9 +27,9 @@ ...@@ -27,9 +27,9 @@
#include <folly/portability/Unistd.h> #include <folly/portability/Unistd.h>
#include <folly/synchronization/CallOnce.h> #include <folly/synchronization/CallOnce.h>
#include <limits.h> #include <climits>
#include <stdio.h> #include <cstdio>
#include <string.h> #include <cstring>
#include <utility> #include <utility>
namespace folly { namespace folly {
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
#include <folly/executors/ManualExecutor.h> #include <folly/executors/ManualExecutor.h>
#include <string.h> #include <cstring>
#include <string> #include <string>
#include <tuple> #include <tuple>
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
#include <folly/experimental/QuotientMultiSet.h> #include <folly/experimental/QuotientMultiSet.h>
#include <math.h> #include <cmath>
#include <folly/Math.h> #include <folly/Math.h>
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
#include <folly/fibers/FiberManagerInternal.h> #include <folly/fibers/FiberManagerInternal.h>
#include <signal.h> #include <csignal>
#include <cassert> #include <cassert>
#include <stdexcept> #include <stdexcept>
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
#ifndef _WIN32 #ifndef _WIN32
#include <dlfcn.h> #include <dlfcn.h>
#endif #endif
#include <signal.h> #include <csignal>
#include <iostream> #include <iostream>
#include <mutex> #include <mutex>
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
#include <folly/io/IOBufQueue.h> #include <folly/io/IOBufQueue.h>
#include <string.h> #include <cstring>
#include <stdexcept> #include <stdexcept>
......
...@@ -19,9 +19,9 @@ ...@@ -19,9 +19,9 @@
#include <folly/io/async/EventBase.h> #include <folly/io/async/EventBase.h>
#include <folly/portability/Sockets.h> #include <folly/portability/Sockets.h>
#include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#include <sys/types.h> #include <sys/types.h>
#include <cerrno>
#include <chrono> #include <chrono>
#include <memory> #include <memory>
......
...@@ -31,9 +31,9 @@ ...@@ -31,9 +31,9 @@
#include <folly/portability/Sockets.h> #include <folly/portability/Sockets.h>
#include <folly/portability/Unistd.h> #include <folly/portability/Unistd.h>
#include <errno.h>
#include <string.h>
#include <sys/types.h> #include <sys/types.h>
#include <cerrno>
#include <cstring>
namespace folly { namespace folly {
......
...@@ -30,9 +30,9 @@ ...@@ -30,9 +30,9 @@
#include <folly/portability/Unistd.h> #include <folly/portability/Unistd.h>
#include <boost/preprocessor/control/if.hpp> #include <boost/preprocessor/control/if.hpp>
#include <errno.h>
#include <limits.h>
#include <sys/types.h> #include <sys/types.h>
#include <cerrno>
#include <climits>
#include <sstream> #include <sstream>
#include <thread> #include <thread>
......
...@@ -20,8 +20,8 @@ ...@@ -20,8 +20,8 @@
#include <folly/io/async/Request.h> #include <folly/io/async/Request.h>
#include <folly/net/NetworkSocket.h> #include <folly/net/NetworkSocket.h>
#include <assert.h>
#include <glog/logging.h> #include <glog/logging.h>
#include <cassert>
namespace folly { namespace folly {
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
#include <folly/portability/Unistd.h> #include <folly/portability/Unistd.h>
#include <boost/preprocessor/control/if.hpp> #include <boost/preprocessor/control/if.hpp>
#include <errno.h> #include <cerrno>
// Due to the way kernel headers are included, this may or may not be defined. // Due to the way kernel headers are included, this may or may not be defined.
// Number pulled from 3.10 kernel headers. // Number pulled from 3.10 kernel headers.
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
#include <folly/String.h> #include <folly/String.h>
#include <folly/io/async/EventBase.h> #include <folly/io/async/EventBase.h>
#include <assert.h> #include <cassert>
namespace folly { namespace folly {
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
#include <folly/portability/Sockets.h> #include <folly/portability/Sockets.h>
#include <folly/portability/Unistd.h> #include <folly/portability/Unistd.h>
#include <errno.h> #include <cerrno>
#include <stdexcept> #include <stdexcept>
namespace folly { namespace folly {
......
...@@ -20,10 +20,10 @@ ...@@ -20,10 +20,10 @@
#include <folly/io/async/test/TimeUtil.h> #include <folly/io/async/test/TimeUtil.h>
#include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/types.h> #include <sys/types.h>
#include <cerrno>
#ifdef __linux__ #ifdef __linux__
#include <sys/utsname.h> #include <sys/utsname.h>
#endif #endif
......
...@@ -16,8 +16,8 @@ ...@@ -16,8 +16,8 @@
#include <folly/net/NetOps.h> #include <folly/net/NetOps.h>
#include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#include <cerrno>
#include <cstddef> #include <cstddef>
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
#include <folly/portability/Libgen.h> #include <folly/portability/Libgen.h>
#include <string.h> #include <cstring>
namespace folly { namespace folly {
namespace portability { namespace portability {
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
#include <folly/portability/Windows.h> #include <folly/portability/Windows.h>
#include <errno.h> #include <cerrno>
#include <mutex> #include <mutex>
#ifdef _WIN32 #ifdef _WIN32
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
#include <folly/portability/SysResource.h> #include <folly/portability/SysResource.h>
#include <errno.h> #include <cerrno>
#ifdef _WIN32 #ifdef _WIN32
#include <folly/portability/Windows.h> #include <folly/portability/Windows.h>
......
...@@ -16,8 +16,8 @@ ...@@ -16,8 +16,8 @@
#include <folly/portability/SysUio.h> #include <folly/portability/SysUio.h>
#include <errno.h> #include <cerrno>
#include <stdio.h> #include <cstdio>
#include <folly/ScopeGuard.h> #include <folly/ScopeGuard.h>
#include <folly/portability/Sockets.h> #include <folly/portability/Sockets.h>
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
#include <folly/CPortability.h> #include <folly/CPortability.h>
#include <folly/Likely.h> #include <folly/Likely.h>
#include <assert.h> #include <cassert>
#include <chrono> #include <chrono>
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
#include <folly/test/DeterministicSchedule.h> #include <folly/test/DeterministicSchedule.h>
#include <assert.h> #include <cassert>
#include <algorithm> #include <algorithm>
#include <list> #include <list>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment