diff options
Diffstat (limited to 'src/compat/rawmem.hpp')
-rw-r--r-- | src/compat/rawmem.hpp | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/compat/rawmem.hpp b/src/compat/rawmem.hpp index bbe917c..c271a56 100644 --- a/src/compat/rawmem.hpp +++ b/src/compat/rawmem.hpp @@ -1,5 +1,4 @@ -#ifndef TMWA_COMPAT_RAWMEM_HPP -#define TMWA_COMPAT_RAWMEM_HPP +#pragma once // rawmem.hpp - Ignore poisoning and really frob this memory unsafely. // // Copyright © 2013-2014 Ben Longbons <b.r.longbons@gmail.com> @@ -19,12 +18,15 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. -# include <cstddef> -# include <cstdint> -# include <cstring> +#include <cstddef> +#include <cstdint> +#include <cstring> -# include "../sanity.hpp" +#include "fwd.hpp" + +namespace tmwa +{ inline void really_memcpy(uint8_t *dest, const uint8_t *src, size_t n) { @@ -47,5 +49,4 @@ void really_memset0(uint8_t *dest, size_t n) { memset(dest, '\0', n); } - -#endif // TMWA_COMPAT_RAWMEM_HPP +} // namespace tmwa |