Commit 2ccbaf9e authored by Christopher Dykes's avatar Christopher Dykes Committed by Facebook Github Bot

Enable auto-deps in all of Folly

Summary: This enables the last of the magic internally.

Reviewed By: yfeldblum

Differential Revision: D5719795

fbshipit-source-id: fb59a0d7873e9a9f3b73f556b42b647091ca7e67
parent 053fb025
...@@ -31,8 +31,8 @@ ...@@ -31,8 +31,8 @@
// Because of the massive pain that is libnl, this can't go into the socket // Because of the massive pain that is libnl, this can't go into the socket
// portability header as you can't include <linux/if.h> and <net/if.h> in // portability header as you can't include <linux/if.h> and <net/if.h> in
// the same translation unit without getting errors -_-... // the same translation unit without getting errors -_-...
#include <iphlpapi.h> #include <iphlpapi.h> // @manual
#include <ntddndis.h> #include <ntddndis.h> // @manual
// Alias the max size of an interface name to what posix expects. // Alias the max size of an interface name to what posix expects.
#define IFNAMSIZ IF_NAMESIZE #define IFNAMSIZ IF_NAMESIZE
......
...@@ -25,13 +25,13 @@ ...@@ -25,13 +25,13 @@
#endif #endif
#if FOLLY_HAVE_FEATURES_H #if FOLLY_HAVE_FEATURES_H
#include <features.h> #include <features.h> // @manual
#endif #endif
#ifdef __ANDROID__ #ifdef __ANDROID__
#include <android/api-level.h> #include <android/api-level.h> // @manual
#endif #endif
#ifdef __APPLE__ #ifdef __APPLE__
#include <Availability.h> #include <Availability.h> // @manual
#endif #endif
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
#include <event.h> #include <event.h>
#ifdef _MSC_VER #ifdef _MSC_VER
#include <event2/event_compat.h> #include <event2/event_compat.h> // @manual
#include <folly/portability/Fcntl.h> #include <folly/portability/Fcntl.h>
#endif #endif
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
#if !defined(USE_JEMALLOC) && !defined(FOLLY_USE_JEMALLOC) #if !defined(USE_JEMALLOC) && !defined(FOLLY_USE_JEMALLOC)
#if defined(__APPLE__) && !defined(FOLLY_HAVE_MALLOC_USABLE_SIZE) #if defined(__APPLE__) && !defined(FOLLY_HAVE_MALLOC_USABLE_SIZE)
#include <malloc/malloc.h> #include <malloc/malloc.h> // @manual
extern "C" size_t malloc_usable_size(void* ptr) { extern "C" size_t malloc_usable_size(void* ptr) {
return malloc_size(ptr); return malloc_size(ptr);
......
...@@ -21,9 +21,9 @@ ...@@ -21,9 +21,9 @@
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#include <event2/util.h> #include <event2/util.h> // @manual
#include <MSWSock.h> #include <MSWSock.h> // @manual
#include <folly/ScopeGuard.h> #include <folly/ScopeGuard.h>
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
#include <folly/portability/SysTypes.h> #include <folly/portability/SysTypes.h>
#include <folly/portability/Windows.h> #include <folly/portability/Windows.h>
#include <WS2tcpip.h> #include <WS2tcpip.h> // @manual
using nfds_t = int; using nfds_t = int;
using sa_family_t = ADDRESS_FAMILY; using sa_family_t = ADDRESS_FAMILY;
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
#if defined(__APPLE__) #if defined(__APPLE__)
#if __has_include(<crt_externs.h>) #if __has_include(<crt_externs.h>)
#include <crt_externs.h> #include <crt_externs.h> // @manual
#endif #endif
#endif #endif
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
#define MEMBARRIER_CMD_QUERY 0 #define MEMBARRIER_CMD_QUERY 0
#define MEMBARRIER_CMD_SHARED 1 #define MEMBARRIER_CMD_SHARED 1
#elif FOLLY_HAVE_LINUX_MEMBARRIER_H #elif FOLLY_HAVE_LINUX_MEMBARRIER_H
#include <linux/membarrier.h> #include <linux/membarrier.h> // @manual
#endif #endif
#endif #endif
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
#include <sys/types.h> #include <sys/types.h>
#ifdef _WIN32 #ifdef _WIN32
#include <basetsd.h> #include <basetsd.h> // @manual
#define HAVE_MODE_T 1 #define HAVE_MODE_T 1
......
...@@ -35,13 +35,13 @@ static void duration_to_ts( ...@@ -35,13 +35,13 @@ static void duration_to_ts(
#if !FOLLY_HAVE_CLOCK_GETTIME || FOLLY_FORCE_CLOCK_GETTIME_DEFINITION #if !FOLLY_HAVE_CLOCK_GETTIME || FOLLY_FORCE_CLOCK_GETTIME_DEFINITION
#if __MACH__ #if __MACH__
#include <errno.h> #include <errno.h>
#include <mach/mach_init.h> #include <mach/mach_init.h> // @manual
#include <mach/mach_port.h> #include <mach/mach_port.h> // @manual
#include <mach/mach_time.h> #include <mach/mach_time.h> // @manual
#include <mach/mach_types.h> #include <mach/mach_types.h> // @manual
#include <mach/task.h> #include <mach/task.h> // @manual
#include <mach/thread_act.h> #include <mach/thread_act.h> // @manual
#include <mach/vm_map.h> #include <mach/vm_map.h> // @manual
static std::chrono::nanoseconds time_value_to_ns(time_value_t t) { static std::chrono::nanoseconds time_value_to_ns(time_value_t t) {
return std::chrono::seconds(t.seconds) + return std::chrono::seconds(t.seconds) +
......
...@@ -32,8 +32,8 @@ ...@@ -32,8 +32,8 @@
// Including ntdef.h requires building as a driver, but all we want // Including ntdef.h requires building as a driver, but all we want
// is a status code, but we need NTSTATUS defined for that. Luckily // is a status code, but we need NTSTATUS defined for that. Luckily
// bcrypt.h also defines NTSTATUS, so we'll use that one instead. // bcrypt.h also defines NTSTATUS, so we'll use that one instead.
#include <bcrypt.h> #include <bcrypt.h> // @manual
#include <ntstatus.h> #include <ntstatus.h> // @manual
// Generic wrapper for the p* family of functions. // Generic wrapper for the p* family of functions.
template <class F, class... Args> template <class F, class... Args>
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
#include <cstdint> #include <cstdint>
#include <sys/locking.h> #include <sys/locking.h> // @manual
#include <folly/portability/SysTypes.h> #include <folly/portability/SysTypes.h>
......
...@@ -29,12 +29,12 @@ ...@@ -29,12 +29,12 @@
#ifndef __STDC__ #ifndef __STDC__
/* nolint */ /* nolint */
#define __STDC__ 1 #define __STDC__ 1
#include <direct.h> // nolint #include <direct.h> // @manual nolint
#include <io.h> // nolint #include <io.h> // @manual nolint
#undef __STDC__ #undef __STDC__
#else #else
#include <direct.h> // nolint #include <direct.h> // @manual nolint
#include <io.h> // nolint #include <io.h> // @manual nolint
#endif #endif
#if defined(min) || defined(max) #if defined(min) || defined(max)
...@@ -49,8 +49,8 @@ ...@@ -49,8 +49,8 @@
#define NOMINMAX 1 #define NOMINMAX 1
#endif #endif
#include <WinSock2.h> #include <WinSock2.h> // @manual
#include <Windows.h> #include <Windows.h> // @manual
#ifdef CAL_GREGORIAN #ifdef CAL_GREGORIAN
#undef CAL_GREGORIAN #undef CAL_GREGORIAN
......
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