Commit 4244a048 authored by Adam Reichold's avatar Adam Reichold Committed by Albert Astals Cid

Replace #pragma once by standard-supported include guards and add missing...

Replace #pragma once by standard-supported include guards and add missing copyright preamble for new header.
parent 5671d3ac
Pipeline #3831 passed with stage
in 3 minutes and 29 seconds
#pragma once
//========================================================================
//
// GooCheckedOps.h
//
// This file is licensed under the GPLv2 or later
//
// Copyright (C) 2018 Adam Reichold <adam.reichold@t-online.de>
//
//========================================================================
#ifndef GOO_CHECKED_OPS_H
#define GOO_CHECKED_OPS_H
#include <climits>
......@@ -34,3 +45,5 @@ inline bool checkedMultiply(int x, int y, int *z) {
return checkedAssign(lz, z);
#endif
}
#endif // GOO_CHECKED_OPS_H
......@@ -23,7 +23,8 @@
//
//========================================================================
#pragma once
#ifndef GMEM_H
#define GMEM_H
#include <cstring>
#include <cstdlib>
......@@ -175,3 +176,5 @@ inline char *copyString(const char *s, size_t n) {
r[n] = '\0';
return std::strncpy(r, s, n);
}
#endif // GMEM_H
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment