reference to undefined macro _MSC_VER

From: bryanh(at)giraffe-data(dot)com (Bryan Henderson)
To: pgsql-bugs(at)postgresql(dot)org
Subject: reference to undefined macro _MSC_VER
Date: 2010-05-08 23:42:12
Message-ID: 32922.bryanh@giraffe-data.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

<server/c.h> (a file that gets included in a user's server extension
compilation) contains the line

# if _MSC_VER > 1400

In the compiler is not Microsoft C at all, _MSC_VER is undefined, and in some
environments, the reference to it is an error (e.g. Gcc with -Wundef -Werror).

So that this header file can work in all environments, it should have an
#ifdef.

I see this in Postgres 8.4.3.

--
Bryan Henderson San Jose, California

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Bryan Henderson 2010-05-08 23:51:17 bool: symbol name collision
Previous Message Tom Lane 2010-05-07 14:12:05 Re: BUG #5451: pg_restore doesn't close input .tar archive