Fix FBString's new includes
authorNicholas Ormrod <njormrod@fb.com>
Mon, 24 Feb 2014 20:53:47 +0000 (12:53 -0800)
committerDave Watson <davejwatson@fb.com>
Fri, 28 Feb 2014 21:59:57 +0000 (13:59 -0800)
Summary:
The headers <ext/hash*> were being included but not used when
_LIBSTDCXX_FBSTRING is defined. They have been relocated to within the
appropiate header block.

Test Plan:
fbconfig -r folly && fbmake runtests_opt

copy FBString and Malloc into libgcc, then
tp2_build libgcc/4.8.1/gcc-4.8.1-glibc-2.17-fb

Reviewed By: pgriess@fb.com

FB internal diff: D1187345

folly/FBString.h

index d67c075d9e2214b32f10c2ddfe01070b710ffa80..7a1aa8b00f54b46edf2c62b13e3ccdaf28014851 100644 (file)
 #include <bits/c++config.h>
 #endif
 
-#ifdef _GLIBCXX_SYMVER
-#include <ext/hash_set>
-#include <ext/hash_map>
-#endif
-
 #ifdef _LIBSTDCXX_FBSTRING
 
 #pragma GCC system_header
 #include "folly/Malloc.h"
 #include "folly/Hash.h"
 
+#ifdef _GLIBCXX_SYMVER
+#include <ext/hash_set>
+#include <ext/hash_map>
+#endif
+
 #endif
 
 // We defined these here rather than including Likely.h to avoid