Re: [PATCHES] c.h is the problem of msvc. - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: [PATCHES] c.h is the problem of msvc.
Date
Msg-id 200607291733.k6THXx104426@momjian.us
Whole thread Raw
In response to Re: [PATCHES] c.h is the problem of msvc.  (Bruce Momjian <bruce@momjian.us>)
List pgsql-hackers
Clarification, the attached version with the BORLAND adjustment is the
one that was applied.

---------------------------------------------------------------------------

Bruce Momjian wrote:
>
> Patch applied.  Thanks.
>
> ---------------------------------------------------------------------------
>
>
> Hiroshi Saito wrote:
> > Ooops,
> > I am uncertain at the reason for not knowing __BORLANDC__...
> > It will be sure if __BORLANDC__ has the definition.
> > Thanks.

--
  Bruce Momjian   bruce@momjian.us
  EnterpriseDB    http://www.enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +
--- src/include/c.h.orig    Sat Jul 15 01:38:59 2006
+++ src/include/c.h    Sat Jul 15 01:40:04 2006
@@ -60,7 +60,9 @@
 #if defined(_MSC_VER) || defined(__BORLANDC__)
 #define    WIN32_ONLY_COMPILER
 #define errcode __vc_errcode
+#if defined(__BORLANDC__) || (_MSC_VER > 1400)
 #include <crtdefs.h>
+#endif
 #undef errcode
 #endif


pgsql-hackers by date:

Previous
From: "Marc G. Fournier"
Date:
Subject: DoS Attack Ended at Approx Noon Today ...
Next
From: "Sergey E. Koposov"
Date:
Subject: Re: Do we need multiple forms of the SQL2003 statistics