Replace traditional header guards with pragma once.
This commit is contained in:
+1
-4
@@ -5,8 +5,7 @@
|
||||
* 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/.
|
||||
*/
|
||||
#ifndef WOMBAT_FS_MEMOPS_HPP
|
||||
#define WOMBAT_FS_MEMOPS_HPP
|
||||
#pragma once
|
||||
|
||||
namespace wombat {
|
||||
namespace fs {
|
||||
@@ -17,5 +16,3 @@ void memset(void *ptr, char val, int size);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
+1
-4
@@ -5,8 +5,7 @@
|
||||
* 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/.
|
||||
*/
|
||||
#ifndef WOMBAT_FS_STROPS_HPP
|
||||
#define WOMBAT_FS_STROPS_HPP
|
||||
#pragma once
|
||||
|
||||
namespace wombat {
|
||||
namespace fs {
|
||||
@@ -15,5 +14,3 @@ int strcmp(const char *str1, const char *str2);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
+1
-4
@@ -5,8 +5,7 @@
|
||||
* 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/.
|
||||
*/
|
||||
#ifndef WOMBAT_FS_TYPES_HPP
|
||||
#define WOMBAT_FS_TYPES_HPP
|
||||
#pragma
|
||||
|
||||
#define offsetof(st, m) ((size_t)(&((st *)0)->m))
|
||||
|
||||
@@ -35,5 +34,3 @@ typedef uint32_t size_t;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
+1
-4
@@ -5,8 +5,7 @@
|
||||
* 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/.
|
||||
*/
|
||||
#ifndef WOMBAT_FS_FILESTORE_HPP
|
||||
#define WOMBAT_FS_FILESTORE_HPP
|
||||
#pragma once
|
||||
|
||||
#include "_memops.hpp"
|
||||
#include "_types.hpp"
|
||||
@@ -382,5 +381,3 @@ typedef FileStore<uint64_t> FileStore64;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
+1
-4
@@ -5,8 +5,7 @@
|
||||
* 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/.
|
||||
*/
|
||||
#ifndef WOMBAT_FS_FILESYSTEM_HPP
|
||||
#define WOMBAT_FS_FILESYSTEM_HPP
|
||||
#pragma once
|
||||
|
||||
#include "_memops.hpp"
|
||||
#include "_strops.hpp"
|
||||
@@ -48,5 +47,3 @@ typedef FileSystem<FileStore64> FileSystem64;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user