diff --git a/src/OpenFOAM/primitives/hashes/SHA1/SHA1.C b/src/OpenFOAM/primitives/hashes/SHA1/SHA1.C
index 43cb7ec474872cb9236f3318a4ad5821c8e3dffb..704c7e663725790107d462710eb62c7fff425a66 100644
--- a/src/OpenFOAM/primitives/hashes/SHA1/SHA1.C
+++ b/src/OpenFOAM/primitives/hashes/SHA1/SHA1.C
@@ -412,4 +412,20 @@ Foam::SHA1Digest Foam::SHA1::digest() const
 }
 
 
+// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
+
+#undef K1
+#undef K2
+#undef K3
+#undef K4
+
+#undef F1
+#undef F2
+#undef F3
+#undef F4
+
+#undef rol_uint32
+#undef M
+#undef R
+
 // ************************************************************************* //