From 95456f584d544b93014c5baa15a7a7e0629ab3b2 Mon Sep 17 00:00:00 2001 From: meep-eep Date: Mon, 11 Apr 2005 01:57:08 +0000 Subject: [PATCH] Don't bother about alignment on Windows for now. git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1626 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/sc2code/libs/compiler.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sc2/src/sc2code/libs/compiler.h b/sc2/src/sc2code/libs/compiler.h index 22cc4de90..92282ab22 100644 --- a/sc2/src/sc2code/libs/compiler.h +++ b/sc2/src/sc2code/libs/compiler.h @@ -81,7 +81,12 @@ typedef DWORD (*PDWORDFUNC) (void); # define _ALIGNED_ON(bytes) __attribute__((aligned(bytes))) #elif defined(_MSC_VER) # define _ALIGNED_ANY -# define _ALIGNED_ON(bytes) __declspec(align(bytes)) +//# define _ALIGNED_ON(bytes) __declspec(align(bytes)) + // __declspec(align(bytes)) expects a constant. 'sizeof (type)' + // will not do. This is something that needs some attention, + // once we find someone with a 64 bits Windows machine. + // Leaving it alone for now. +# define _ALIGNED_ON(bytes) #endif #endif /* _COMPILER_H */