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

Ensure portability/Windows.h is included before OpenSSL headers

Summary: Because OpenSSL is evil to Windows, and you have to forcefully include winsock2 before winsock.

Reviewed By: yfeldblum

Differential Revision: D4453742

fbshipit-source-id: 3b1b5b1f999722559693164148245f52b1e94104
parent 61d6143a
...@@ -16,6 +16,9 @@ ...@@ -16,6 +16,9 @@
#pragma once #pragma once
// This must come before the OpenSSL includes.
#include <folly/portability/Windows.h>
#include <openssl/ssl.h> #include <openssl/ssl.h>
#include <openssl/x509.h> #include <openssl/x509.h>
......
...@@ -17,7 +17,9 @@ ...@@ -17,7 +17,9 @@
#pragma once #pragma once
#include <folly/Range.h> #include <folly/Range.h>
#include <openssl/ssl.h>
#include <folly/portability/OpenSSL.h>
#include <string> #include <string>
namespace folly { namespace folly {
......
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