From a01ba2448a45540caef38de902a316b2ac18c4ee Mon Sep 17 00:00:00 2001 From: Hans Fugal Date: Fri, 10 Apr 2015 11:17:34 -0700 Subject: [PATCH] (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 --- folly/wangle/rx/Observable.h | 2 +- folly/wangle/rx/Observer.h | 2 +- folly/wangle/rx/Subject.h | 1 + folly/wangle/rx/Subscription.h | 1 + 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/folly/wangle/rx/Observable.h b/folly/wangle/rx/Observable.h index 98f6b431..b3f25564 100644 --- a/folly/wangle/rx/Observable.h +++ b/folly/wangle/rx/Observable.h @@ -16,9 +16,9 @@ #pragma once +#include // must come first #include #include -#include #include #include diff --git a/folly/wangle/rx/Observer.h b/folly/wangle/rx/Observer.h index 3ce94acf..e82d4e6f 100644 --- a/folly/wangle/rx/Observer.h +++ b/folly/wangle/rx/Observer.h @@ -16,7 +16,7 @@ #pragma once -#include +#include // must come first #include #include #include diff --git a/folly/wangle/rx/Subject.h b/folly/wangle/rx/Subject.h index ba66f860..c806d705 100644 --- a/folly/wangle/rx/Subject.h +++ b/folly/wangle/rx/Subject.h @@ -16,6 +16,7 @@ #pragma once +#include // must come first #include #include diff --git a/folly/wangle/rx/Subscription.h b/folly/wangle/rx/Subscription.h index e017f4e4..8445ccf2 100644 --- a/folly/wangle/rx/Subscription.h +++ b/folly/wangle/rx/Subscription.h @@ -16,6 +16,7 @@ #pragma once +#include // must come first #include namespace folly { namespace wangle { -- 2.34.1