summaryrefslogtreecommitdiff
path: root/src/common/common.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/common.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/common.h')
-rw-r--r--src/common/common.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/common/common.h b/src/common/common.h
index 09027cae1..cb69eabe4 100644
--- a/src/common/common.h
+++ b/src/common/common.h
@@ -2,15 +2,14 @@
// Licensed under GPLv2
// Refer to the license.txt file included.
-#ifndef _COMMON_H_
-#define _COMMON_H_
+#pragma once
// DO NOT EVER INCLUDE <windows.h> directly _or indirectly_ from this file
// since it slows down the build a lot.
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
+#include <cstdlib>
+#include <cstdio>
+#include <cstring>
// Force enable logging in the right modes. For some reason, something had changed
// so that debugfast no longer logged.
@@ -200,5 +199,3 @@ inline double bswapd(double f) {
}
#include "swap.h"
-
-#endif // _COMMON_H_