Skip to content

Commit 69a0e2f

Browse files
committed
PGDLLIMPORT-ize the global variables referenced in pg_crc.h.
I think this will fix current mingw buildfarm failures for pg_trgm.
1 parent 53f93cb commit 69a0e2f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/include/utils/pg_crc.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
1818
* Portions Copyright (c) 1994, Regents of the University of California
1919
*
20-
* $PostgreSQL: pgsql/src/include/utils/pg_crc.h,v 1.18 2008/11/12 21:53:46 alvherre Exp $
20+
* $PostgreSQL: pgsql/src/include/utils/pg_crc.h,v 1.19 2008/11/13 14:42:28 tgl Exp $
2121
*/
2222
#ifndef PG_CRC_H
2323
#define PG_CRC_H
@@ -48,7 +48,7 @@ do { \
4848
#define EQ_CRC32(c1,c2) ((c1) == (c2))
4949

5050
/* Constant table for CRC calculation */
51-
extern const uint32 pg_crc32_table[];
51+
extern PGDLLIMPORT const uint32 pg_crc32_table[];
5252

5353

5454
#ifdef PROVIDE_64BIT_CRC
@@ -106,8 +106,8 @@ do { \
106106
#define EQ_CRC64(c1,c2) ((c1).crc0 == (c2).crc0 && (c1).crc1 == (c2).crc1)
107107

108108
/* Constant table for CRC calculation */
109-
extern const uint32 pg_crc64_table0[];
110-
extern const uint32 pg_crc64_table1[];
109+
extern PGDLLIMPORT const uint32 pg_crc64_table0[];
110+
extern PGDLLIMPORT const uint32 pg_crc64_table1[];
111111
#else /* int64 works */
112112

113113
typedef struct pg_crc64
@@ -140,7 +140,7 @@ do { \
140140
#define EQ_CRC64(c1,c2) ((c1).crc0 == (c2).crc0)
141141

142142
/* Constant table for CRC calculation */
143-
extern const uint64 pg_crc64_table[];
143+
extern PGDLLIMPORT const uint64 pg_crc64_table[];
144144
#endif /* INT64_IS_BUSTED */
145145
#endif /* PROVIDE_64BIT_CRC */
146146

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