reference to undefined macro _MSC_VER - Mailing list pgsql-bugs

From bryanh@giraffe-data.com (Bryan Henderson)
Subject reference to undefined macro _MSC_VER
Date
Msg-id 32922.bryanh@giraffe-data.com
Whole thread Raw
Responses Re: reference to undefined macro _MSC_VER  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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

pgsql-bugs by date:

Previous
From: "KOIZUMI Satoru"
Date:
Subject: BUG #5455: two PGTYPES_NUM_OVERFLOWs
Next
From: bryanh@giraffe-data.com (Bryan Henderson)
Date:
Subject: bool: symbol name collision