Replace traditional header guards with pragma once.
This commit is contained in:
+3
-6
@@ -5,12 +5,6 @@ project(WombatFS)
|
||||
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/Modules)
|
||||
include(address_sanitizer)
|
||||
|
||||
add_definitions(
|
||||
#-Werror
|
||||
#--analyze
|
||||
#-Os # GCC size optimization flag
|
||||
)
|
||||
|
||||
if(NOT MSVC)
|
||||
add_definitions(
|
||||
-std=c++11
|
||||
@@ -19,6 +13,9 @@ if(NOT MSVC)
|
||||
-fno-exceptions
|
||||
-fno-rtti
|
||||
-Wsign-compare
|
||||
#-Werror
|
||||
#--analyze
|
||||
#-Os # GCC size optimization flag
|
||||
)
|
||||
endif(NOT MSVC)
|
||||
|
||||
|
||||
+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