Bug 730100 followup. Add missing include guards. Assumed r=ms2ger
authorBoris Zbarsky <bzbarsky@mit.edu>
Fri, 02 Mar 2012 00:20:32 -0500
changeset 91015 c11552388c8bedab9bbb982938d0c41acddbf2a7
parent 91014 b1eb49737d05a4d89ac681a91fa0075a7846829c
child 91016 02dcec80742225f93746f18f252bd43d71f1c2aa
push id783
push userlsblakk@mozilla.com
push dateTue, 24 Apr 2012 17:33:42 +0000
treeherdermozilla-beta@11faed19f136 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersms2ger
bugs730100
milestone13.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 730100 followup. Add missing include guards. Assumed r=ms2ger
mfbt/Likely.h
--- a/mfbt/Likely.h
+++ b/mfbt/Likely.h
@@ -2,16 +2,20 @@
  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
  * You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 /*
  * MOZ_LIKELY and MOZ_UNLIKELY macros to hint to the compiler how a
  * boolean predicate should be branch-predicted.
  */
 
+#ifndef Likely_h_
+#define Likely_h_
+
 #if defined(__clang__) || (defined(__GNUC__) && (__GNUC__ > 2))
 #  define MOZ_LIKELY(x)   (__builtin_expect((x), 1))
 #  define MOZ_UNLIKELY(x) (__builtin_expect((x), 0))
 #else
 #  define MOZ_LIKELY(x)   (x)
 #  define MOZ_UNLIKELY(x) (x)
 #endif
 
+#endif /* Likely_h_ */