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)
|
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/Modules)
|
||||||
include(address_sanitizer)
|
include(address_sanitizer)
|
||||||
|
|
||||||
add_definitions(
|
|
||||||
#-Werror
|
|
||||||
#--analyze
|
|
||||||
#-Os # GCC size optimization flag
|
|
||||||
)
|
|
||||||
|
|
||||||
if(NOT MSVC)
|
if(NOT MSVC)
|
||||||
add_definitions(
|
add_definitions(
|
||||||
-std=c++11
|
-std=c++11
|
||||||
@@ -19,6 +13,9 @@ if(NOT MSVC)
|
|||||||
-fno-exceptions
|
-fno-exceptions
|
||||||
-fno-rtti
|
-fno-rtti
|
||||||
-Wsign-compare
|
-Wsign-compare
|
||||||
|
#-Werror
|
||||||
|
#--analyze
|
||||||
|
#-Os # GCC size optimization flag
|
||||||
)
|
)
|
||||||
endif(NOT MSVC)
|
endif(NOT MSVC)
|
||||||
|
|
||||||
|
|||||||
+1
-4
@@ -5,8 +5,7 @@
|
|||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* 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/.
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
*/
|
*/
|
||||||
#ifndef WOMBAT_FS_MEMOPS_HPP
|
#pragma once
|
||||||
#define WOMBAT_FS_MEMOPS_HPP
|
|
||||||
|
|
||||||
namespace wombat {
|
namespace wombat {
|
||||||
namespace fs {
|
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
|
* 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/.
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
*/
|
*/
|
||||||
#ifndef WOMBAT_FS_STROPS_HPP
|
#pragma once
|
||||||
#define WOMBAT_FS_STROPS_HPP
|
|
||||||
|
|
||||||
namespace wombat {
|
namespace wombat {
|
||||||
namespace fs {
|
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
|
* 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/.
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
*/
|
*/
|
||||||
#ifndef WOMBAT_FS_TYPES_HPP
|
#pragma
|
||||||
#define WOMBAT_FS_TYPES_HPP
|
|
||||||
|
|
||||||
#define offsetof(st, m) ((size_t)(&((st *)0)->m))
|
#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
|
* 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/.
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
*/
|
*/
|
||||||
#ifndef WOMBAT_FS_FILESTORE_HPP
|
#pragma once
|
||||||
#define WOMBAT_FS_FILESTORE_HPP
|
|
||||||
|
|
||||||
#include "_memops.hpp"
|
#include "_memops.hpp"
|
||||||
#include "_types.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
|
* 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/.
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
*/
|
*/
|
||||||
#ifndef WOMBAT_FS_FILESYSTEM_HPP
|
#pragma once
|
||||||
#define WOMBAT_FS_FILESYSTEM_HPP
|
|
||||||
|
|
||||||
#include "_memops.hpp"
|
#include "_memops.hpp"
|
||||||
#include "_strops.hpp"
|
#include "_strops.hpp"
|
||||||
@@ -48,5 +47,3 @@ typedef FileSystem<FileStore64> FileSystem64;
|
|||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|||||||
Reference in New Issue
Block a user