cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: ## macro question

From: Bjorn Reese <breese_at_mail1.stofanet.dk>
Date: Mon, 29 Jul 2002 16:15:04 +0000

Daniel Stenberg wrote:

> Yeah, and ANSI too. (For a great reference, check out Bjorn Reese's
> http://predef.sourceforge.net/)

Nearly forgot about that :)

> > #if defined(__STDC__) || defined(_MSC_VER)

> > ^^^ This only works on WINDOWS because of _MSC_VER, but not on HP or SUN..
>
> I fail to understand *why* the HP and SUN compilers don't have __STDC__
> defined though. Do they have _XOPEN_SOURCE defined? Or do you have any other
> interesting suggestions? ;-)

Priya: could you try running the following script and tell us the results?

  http://www.sonic.net/~roelofs/code/defines-latest.txt

> > What if we tried this? It is just a suggestion. We are using aCC A.03.34
> > (HP) and gcc 3.0.4 (SUN) and cl.exe 12.00.8168 (windows/VC++ 6.0)

You want to upgrade to gcc 3.1; not that it solves your problem, but gcc
3.0.x is a dying branch.

> > #if defined(ISO_C)
>
> Well, *no* compiler has that defined! Besides, you made the check reversed,

Never heard of it. Maybe it's Fortranism.

-------------------------------------------------------
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
Received on 2002-07-29