From 945d0b4b09624db3bfa7b3e91c0625cf6a6b72b2 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Thu, 11 Jan 2007 02:39:52 +0000 Subject: Allow Borland CC to compile libpq and psql. L Bayuk --- src/include/c.h | 4 ++-- src/include/port.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/include') diff --git a/src/include/c.h b/src/include/c.h index 6608f80efe..dab8dc2e68 100644 --- a/src/include/c.h +++ b/src/include/c.h @@ -12,7 +12,7 @@ * Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/c.h,v 1.215 2007/01/05 22:19:50 momjian Exp $ + * $PostgreSQL: pgsql/src/include/c.h,v 1.216 2007/01/11 02:39:52 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -59,7 +59,7 @@ #include "postgres_ext.h" #include "pg_trace.h" -#if defined(__BORLANDC__) || (_MSC_VER >= 1400) +#if _MSC_VER >= 1400 #define errcode __msvc_errcode #include #undef errcode diff --git a/src/include/port.h b/src/include/port.h index 5875a46536..305fe7c3c9 100644 --- a/src/include/port.h +++ b/src/include/port.h @@ -6,7 +6,7 @@ * Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/port.h,v 1.107 2007/01/05 22:19:50 momjian Exp $ + * $PostgreSQL: pgsql/src/include/port.h,v 1.108 2007/01/11 02:39:52 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -343,7 +343,7 @@ extern char *strdup(const char *str); extern size_t strlcpy(char *dst, const char *src, size_t siz); #endif -#ifndef HAVE_RANDOM +#if !defined(HAVE_RANDOM) && !defined(__BORLANDC__) extern long random(void); #endif -- cgit v1.2.1