Commit a01ba244 authored by Hans Fugal's avatar Hans Fugal Committed by Alecs King

(rx) Include types.h first

Summary: We need to do forward declarations first, and types.h already does declarations, so just make sure it gets included first in each file.

Test Plan:
tests

Reviewed By: davejwatson@fb.com

Subscribers: trunkagent, fugalh, exa, folly-diffs@, jsedgwick, yfeldblum

FB internal diff: D1861040

Tasks: 6258585

Signature: t1:1861040:1428604059:de6393e3c87e0694a6b04ad6d440cc9635a1008d
parent 99c59770
...@@ -16,9 +16,9 @@ ...@@ -16,9 +16,9 @@
#pragma once #pragma once
#include <folly/wangle/rx/types.h> // must come first
#include <folly/wangle/rx/Subject.h> #include <folly/wangle/rx/Subject.h>
#include <folly/wangle/rx/Subscription.h> #include <folly/wangle/rx/Subscription.h>
#include <folly/wangle/rx/types.h>
#include <folly/RWSpinLock.h> #include <folly/RWSpinLock.h>
#include <folly/SmallLocks.h> #include <folly/SmallLocks.h>
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
#pragma once #pragma once
#include <folly/wangle/rx/types.h> #include <folly/wangle/rx/types.h> // must come first
#include <functional> #include <functional>
#include <memory> #include <memory>
#include <stdexcept> #include <stdexcept>
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
#pragma once #pragma once
#include <folly/wangle/rx/types.h> // must come first
#include <folly/wangle/rx/Observable.h> #include <folly/wangle/rx/Observable.h>
#include <folly/wangle/rx/Observer.h> #include <folly/wangle/rx/Observer.h>
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
#pragma once #pragma once
#include <folly/wangle/rx/types.h> // must come first
#include <folly/wangle/rx/Observable.h> #include <folly/wangle/rx/Observable.h>
namespace folly { namespace wangle { namespace folly { namespace wangle {
......
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