Skip to content

Commit 24262be

Browse files
committed
Add missing checks for Borland C compiler.
L J Bayuk
1 parent 03e2a47 commit 24262be

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/include/pgstat.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*
66
* Copyright (c) 2001-2003, PostgreSQL Global Development Group
77
*
8-
* $PostgreSQL: pgsql/src/include/pgstat.h,v 1.18 2003/12/25 03:52:51 momjian Exp $
8+
* $PostgreSQL: pgsql/src/include/pgstat.h,v 1.19 2004/03/02 18:35:58 momjian Exp $
99
* ----------
1010
*/
1111
#ifndef PGSTAT_H
@@ -271,7 +271,7 @@ typedef struct PgStat_MsgTabstat
271271
* ----------
272272
*/
273273
#define PGSTAT_NUM_TABPURGE ((1000 - sizeof(PgStat_MsgHdr)) \
274-
/ sizeof(PgStat_TableEntry))
274+
/ sizeof(Oid))
275275

276276
/* ----------
277277
* PgStat_MsgTabpurge Sent by the backend to tell the collector

src/include/port/win32.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.19 2004/02/23 20:48:03 tgl Exp $ */
1+
/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.20 2004/03/02 18:35:59 momjian Exp $ */
22

33
/* undefine and redefine after #include */
44
#undef mkdir
@@ -27,7 +27,7 @@
2727
#define DLLIMPORT __declspec (dllimport)
2828
#endif
2929

30-
#elif defined(WIN32) && defined(_MSC_VER) /* not CYGWIN or MingW */
30+
#elif defined(WIN32) && (defined(_MSC_VER) || defined(__BORLANDC__)) /* not CYGWIN or MingW */
3131

3232
#if defined(_DLL)
3333
#define DLLIMPORT __declspec (dllexport)

src/port/thread.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
99
*
10-
* $PostgreSQL: pgsql/src/port/thread.c,v 1.15 2004/02/11 21:44:06 momjian Exp $
10+
* $PostgreSQL: pgsql/src/port/thread.c,v 1.16 2004/03/02 18:35:59 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -16,7 +16,7 @@
1616

1717
#include <sys/types.h>
1818
#include <errno.h>
19-
#if defined(WIN32) && defined(_MSC_VER)
19+
#if defined(WIN32) && (defined(_MSC_VER) || defined(__BORLANDC__))
2020
#undef ERROR
2121
#else
2222
#include <pwd.h>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy