diff options
author | Lioncash <mathew1800@gmail.com> | 2014-08-17 13:45:50 -0400 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2014-08-17 13:45:55 -0400 |
commit | 90e994471a385d2b965e3843e1f693ccba6fb699 (patch) | |
tree | b5835e0b235225f8478f26814205337d26a5d91a /src/common/common.h | |
parent | d1c2b76ad1687c4ccf5673d593de3b7f8710a9c0 (diff) |
Common: Move header guards over to pragma once
Also replaced C headers with the C++ equivalent ones
Diffstat (limited to 'src/common/common.h')
-rw-r--r-- | src/common/common.h | 11 |
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_ |