Re: [BUGS] reference to undefined macro _MSC_VER

2010-05-09 Thread Bryan Henderson
>As for -Wundef, it seems rather impractical to turn that on anyway given >that it produces numerous other warnings --- a quick check in HEAD shows It looks like my point was missed. I'm talking about compiling user code that interfaces with Postgres. I'm specifically talking about server extens

Re: [BUGS] reference to undefined macro _MSC_VER

2010-05-09 Thread Tom Lane
bry...@giraffe-data.com (Bryan Henderson) writes: > (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

[BUGS] reference to undefined macro _MSC_VER

2010-05-08 Thread Bryan Henderson
(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