From ffb931f8b1ec08c80051460e923cc776c39d617d Mon Sep 17 00:00:00 2001 From: Piotr Tworek Date: Tue, 12 Jan 2021 01:47:04 +0100 Subject: [PATCH] nano3d: Fix header guard in sqrt.h The code fails to build with clang due to the following warning/error: error: '_INCLUDE__NANO3D__SQRT_H_' is used as a header guard here, followed by #define of a different macro [-Werror,-Wheader-guard] Fix this by removing the extra underscore from this header guard definition. Issue #3985 --- repos/gems/include/nano3d/sqrt.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/repos/gems/include/nano3d/sqrt.h b/repos/gems/include/nano3d/sqrt.h index 2e53407f1a..b2dd66a9d1 100644 --- a/repos/gems/include/nano3d/sqrt.h +++ b/repos/gems/include/nano3d/sqrt.h @@ -12,7 +12,7 @@ */ #ifndef _INCLUDE__NANO3D__SQRT_H_ -#define _INCLUDE__NANO3D__SQRT_H__ +#define _INCLUDE__NANO3D__SQRT_H_ namespace Nano3d { @@ -38,4 +38,4 @@ namespace Nano3d { } } -#endif /* _INCLUDE__NANO3D__SQRT_H__ */ +#endif /* _INCLUDE__NANO3D__SQRT_H_ */