summaryrefslogtreecommitdiffstats
path: root/src/Vector3.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2015-05-09 00:32:02 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2015-05-09 00:32:02 +0200
commit218010cd96a3e887e7fbd8e18e1b74b7dc481036 (patch)
treebc4149f29ba75083b4e11aa4c5174c04bab92e08 /src/Vector3.h
parentMerge pull request #1945 from Woazboat/CodeCleanup_refactored (diff)
downloadcuberite-218010cd96a3e887e7fbd8e18e1b74b7dc481036.tar
cuberite-218010cd96a3e887e7fbd8e18e1b74b7dc481036.tar.gz
cuberite-218010cd96a3e887e7fbd8e18e1b74b7dc481036.tar.bz2
cuberite-218010cd96a3e887e7fbd8e18e1b74b7dc481036.tar.lz
cuberite-218010cd96a3e887e7fbd8e18e1b74b7dc481036.tar.xz
cuberite-218010cd96a3e887e7fbd8e18e1b74b7dc481036.tar.zst
cuberite-218010cd96a3e887e7fbd8e18e1b74b7dc481036.zip
Diffstat (limited to 'src/Vector3.h')
-rw-r--r--src/Vector3.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/Vector3.h b/src/Vector3.h
index c5a3f9f05..089120cab 100644
--- a/src/Vector3.h
+++ b/src/Vector3.h
@@ -80,15 +80,15 @@ public:
inline bool HasNonZeroLength(void) const
{
- #ifndef __GNUC__
- #pragma clang diagnostics push
- #pragma clang diagnostics ignored "-Wfloat-equal"
+ #ifdef __clang__
+ #pragma clang diagnostics push
+ #pragma clang diagnostics ignored "-Wfloat-equal"
#endif
return ((x != 0) || (y != 0) || (z != 0));
- #ifndef __GNUC__
- #pragma clang diagnostics pop
+ #ifdef __clang__
+ #pragma clang diagnostics pop
#endif
}
@@ -136,15 +136,15 @@ public:
// Perform a strict comparison of the contents - we want to know whether this object is exactly equal
// To perform EPS-based comparison, use the EqualsEps() function
- #ifndef __GNUC__
- #pragma clang diagnostics push
- #pragma clang diagnostics ignored "-Wfloat-equal"
+ #ifdef __clang__
+ #pragma clang diagnostics push
+ #pragma clang diagnostics ignored "-Wfloat-equal"
#endif
return !((x != a_Rhs.x) || (y != a_Rhs.y) || (z != a_Rhs.z));
- #ifndef __GNUC__
- #pragma clang diagnostics pop
+ #ifdef __clang__
+ #pragma clang diagnostics pop
#endif
}