delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/01/02/22:08:12

From: khan AT xraylith DOT wisc DOT edu (Mumit Khan)
Subject: Re: How do I avoid buying MSVC++?
2 Jan 1999 22:08:12 -0800 :
Message-ID: <Pine.SUN.3.93.990102222145.697C-100000.cygnus.gnu-win32@modi.xraylith.wisc.edu>
References: <00a101be3688$b2515780$016464c0 AT susato DOT demon DOT co DOT uk>
Mime-Version: 1.0
To: Max Hadley <max AT susato DOT demon DOT co DOT uk>
Cc: Cygwin mailing list <gnu-win32 AT cygnus DOT com>

On Sat, 2 Jan 1999, Max Hadley wrote:

> when not to. Also on his/her advice:
> 
>     #define _declspec(A) extern

Actually, gcc does support __declspec, but not _declspec. Microsoft
uses _declspec as a synonym for __declspec, but suggests that you
use __declspec in the documentation.

Use the following:
   
   #define _declspec(x) __attribute__((x))

and that should fix the global problem.

fyi, GCC's "specs" define __declspec as the following:

   #define __declspec(x) __attribute__((x))

Regards,
Mumit

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019