]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - mdfour.h
common: Define DP_STATIC_ASSERT which wraps static_assert
[xonotic/darkplaces.git] / mdfour.h
index c6542a217eef8510041983ea46e1b5a20e08ec97..5a141755a2cb396f80ff2369fc6086470c00101b 100644 (file)
--- a/mdfour.h
+++ b/mdfour.h
 #ifndef _MDFOUR_H
 #define _MDFOUR_H
 
-#ifndef int32
-#define int32 int
-#endif
-
-#if SIZEOF_INT > 4
-#define LARGE_INT32
-#endif
-
-#ifndef uint32
-#define uint32 unsigned int32
-#endif
+#include <stdint.h>
 
 struct mdfour_s {
-       uint32 A, B, C, D;
-       uint32 totalN;
+       uint32_t A, B, C, D;
+       uint32_t totalN;
 };
 
 void mdfour_begin(struct mdfour_s *md); // old: MD4Init