summaryrefslogtreecommitdiff
path: root/src/common/thread.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2014-08-17 20:32:04 -0400
committerbunnei <bunneidev@gmail.com>2014-08-17 20:32:04 -0400
commitb26f25356d4463b5e4ccd36cf7365342d7306e7f (patch)
tree1cbe356089890c22e3f1e4084891f306d6e62d97 /src/common/thread.h
parent7ed73af78fb1b8e736b7807633875b3fe05474e6 (diff)
parentda6f24b37470064f10e68186965949d728fecb3c (diff)
Merge pull request #51 from lioncash/pragma
Common: Move header guards over to pragma once.
Diffstat (limited to 'src/common/thread.h')
-rw-r--r--src/common/thread.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/common/thread.h b/src/common/thread.h
index d72ac7b47..dbb9da53b 100644
--- a/src/common/thread.h
+++ b/src/common/thread.h
@@ -2,8 +2,7 @@
// Licensed under GPLv2
// Refer to the license.txt file included.
-#ifndef _THREAD_H_
-#define _THREAD_H_
+#pragma once
#include "common/std_condition_variable.h"
#include "common/std_mutex.h"
@@ -11,8 +10,8 @@
// Don't include common.h here as it will break LogManager
#include "common/common_types.h"
-#include <stdio.h>
-#include <string.h>
+#include <cstdio>
+#include <cstring>
// This may not be defined outside _WIN32
#ifndef _WIN32
@@ -152,5 +151,3 @@ inline void YieldCPU()
void SetCurrentThreadName(const char *name);
} // namespace Common
-
-#endif // _THREAD_H_