Bug 749678 - 2/5 - add include guards to thread_helpers.h - r=ehsan
authorBenoit Jacob <bjacob@mozilla.com>
Tue, 08 May 2012 09:47:34 -0400
changeset 95763 eaba5dd27bbd4450a6b66b4c8e436871c4409988
parent 95762 16fe445890798ca8f8ed79211ca19c4e04ff141d
child 95764 d0c36963b5fc5302fc3607a643d9ce521fda17ce
push id1439
push userlsblakk@mozilla.com
push dateMon, 04 Jun 2012 20:19:22 +0000
treeherdermozilla-aurora@ea74834dccd3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersehsan
bugs749678
milestone15.0a1
Bug 749678 - 2/5 - add include guards to thread_helpers.h - r=ehsan
tools/profiler/thread_helper.h
--- a/tools/profiler/thread_helper.h
+++ b/tools/profiler/thread_helper.h
@@ -33,16 +33,19 @@
  * and other provisions required by the GPL or the LGPL. If you do not delete
  * the provisions above, a recipient may use your version of this file under
  * the terms of any one of the MPL, the GPL or the LGPL.
  *
  * ***** END LICENSE BLOCK ***** */
 
 // Cross-platform lightweight thread local data wrappers
 
+#ifndef MOZ_THREAD_HELPER_H
+#define MOZ_THREAD_HELPER_H
+
 #if defined(XP_WIN)
   // This file will get included in any file that wants to add
   // a profiler mark. In order to not bring <windows.h> together
   // we could include windef.h and winbase.h which are sufficient
   // to get the prototypes for the Tls* functions.
   // # include <windef.h>
   // # include <winbase.h>
   // Unfortunately, even including these headers causes
@@ -109,8 +112,9 @@ inline bool create(key* mykey) {
 }
 
 #endif
 
 }
 
 }
  
+#endif // MOZ_THREAD_HELPER_H
\ No newline at end of file