This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: RFC: Enable __declspec for Linux/x86
On 4/2/07, H. J. Lu <hjl@lucon.org> wrote:
It won't work with
__declspec(align(16)) double x [4];
And the code should be converted over to use GCC style attributes.
So really the code should be something like:
#ifndef __WIN32__
#define __align16 __attribute__((align(16) ))
#else
#define __align16 __declspec(align(16) )
#endif
And then use __align16 all the way through the code. There is no
reason why GCC on Linux should be emulating MS's compiler.
-- Pinski