This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: RFC: Enable __declspec for Linux/x86
- From: "Andrew Pinski" <pinskia at gmail dot com>
- To: "H. J. Lu" <hjl at lucon dot org>
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 2 Apr 2007 14:06:15 -0700
- Subject: Re: RFC: Enable __declspec for Linux/x86
- References: <20070402210334.GA3529@lucon.org>
On 4/2/07, H. J. Lu <hjl@lucon.org> wrote:
Many x86 SSE source codes use __declspec. I'd like to make
__declspec available for Linux/x86. We can do one of the
following:
Do the following in the sources:
#ifndef __WIN32__
#define __declspec(x)
#endif
or in the makefiles:
Add "-D__declspec(x)=" to CFLAGS/CXXFLAGS.
There is nothing special that __declspec does for Linux really.
-- Pinski