medfall

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 442d38fcea25e0a42618149938dba28397fbbb07
parent 5de4c5c1f6e767caea9544a7f2a20f7f61a75258
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Sat Feb 11 10:35:11 +0200

Fix Windows build

Diffstat:
intrinsics.h | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/intrinsics.h b/intrinsics.h @@ -172,7 +172,11 @@ inline To checked_cast( const From & from ) { template< typename T > inline bool is_aligned( const T * ptr ) { +#if COMPILER_MSVC + return checked_cast< size_t >( ptr ) % __alignof( T ) == 0; +#else return checked_cast< size_t >( ptr ) % alignof( T ) == 0; +#endif } // TODO: this sucks