From a1f3b14619dfb2b9b88de4f1c779ecfecb2193ed Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Sat, 2 Jul 2005 18:04:31 +0000 Subject: [PATCH] VC6 fix --- stepmania/src/crypto51/misc.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stepmania/src/crypto51/misc.h b/stepmania/src/crypto51/misc.h index f212ba13fa..34dcce9c85 100644 --- a/stepmania/src/crypto51/misc.h +++ b/stepmania/src/crypto51/misc.h @@ -140,6 +140,10 @@ inline unsigned int GetAlignment(T *dummy=NULL) // VC60 workaround #endif } +#if !defined(uintptr_t) +typedef unsigned int uintptr_t; +#endif + inline bool IsAlignedOn(const void *p, unsigned int alignment) { return IsPowerOf2(alignment) ? ModPowerOf2((uintptr_t)p, alignment) == 0 : (uintptr_t)p % alignment == 0;