This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFC: Enable __declspec for Linux/x86


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]