Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
62533d34
Commit
62533d34
authored
16 years ago
by
Tom Lane
Browse files
Options
Downloads
Patches
Plain Diff
Second try at fixing DLLIMPORT problem for pg_crc.h on Cygwin.
parent
32cc9e55
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/include/utils/pg_crc.h
+11
-5
11 additions, 5 deletions
src/include/utils/pg_crc.h
with
11 additions
and
5 deletions
src/include/utils/pg_crc.h
+
11
−
5
View file @
62533d34
...
@@ -17,11 +17,17 @@
...
@@ -17,11 +17,17 @@
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* $PostgreSQL: pgsql/src/include/utils/pg_crc.h,v 1.
19
2008/11/1
3 14:42:28
tgl Exp $
* $PostgreSQL: pgsql/src/include/utils/pg_crc.h,v 1.
20
2008/11/1
4 20:21:07
tgl Exp $
*/
*/
#ifndef PG_CRC_H
#ifndef PG_CRC_H
#define PG_CRC_H
#define PG_CRC_H
/* ugly hack to let this be used in frontend and backend code on Cygwin */
#ifdef FRONTEND
#define CRCDLLIMPORT
#else
#define CRCDLLIMPORT PGDLLIMPORT
#endif
typedef
uint32
pg_crc32
;
typedef
uint32
pg_crc32
;
...
@@ -48,7 +54,7 @@ do { \
...
@@ -48,7 +54,7 @@ do { \
#define EQ_CRC32(c1,c2) ((c1) == (c2))
#define EQ_CRC32(c1,c2) ((c1) == (c2))
/* Constant table for CRC calculation */
/* Constant table for CRC calculation */
extern
PG
DLLIMPORT
const
uint32
pg_crc32_table
[];
extern
CRC
DLLIMPORT
const
uint32
pg_crc32_table
[];
#ifdef PROVIDE_64BIT_CRC
#ifdef PROVIDE_64BIT_CRC
...
@@ -106,8 +112,8 @@ do { \
...
@@ -106,8 +112,8 @@ do { \
#define EQ_CRC64(c1,c2) ((c1).crc0 == (c2).crc0 && (c1).crc1 == (c2).crc1)
#define EQ_CRC64(c1,c2) ((c1).crc0 == (c2).crc0 && (c1).crc1 == (c2).crc1)
/* Constant table for CRC calculation */
/* Constant table for CRC calculation */
extern
PG
DLLIMPORT
const
uint32
pg_crc64_table0
[];
extern
CRC
DLLIMPORT
const
uint32
pg_crc64_table0
[];
extern
PG
DLLIMPORT
const
uint32
pg_crc64_table1
[];
extern
CRC
DLLIMPORT
const
uint32
pg_crc64_table1
[];
#else
/* int64 works */
#else
/* int64 works */
typedef
struct
pg_crc64
typedef
struct
pg_crc64
...
@@ -140,7 +146,7 @@ do { \
...
@@ -140,7 +146,7 @@ do { \
#define EQ_CRC64(c1,c2) ((c1).crc0 == (c2).crc0)
#define EQ_CRC64(c1,c2) ((c1).crc0 == (c2).crc0)
/* Constant table for CRC calculation */
/* Constant table for CRC calculation */
extern
PG
DLLIMPORT
const
uint64
pg_crc64_table
[];
extern
CRC
DLLIMPORT
const
uint64
pg_crc64_table
[];
#endif
/* INT64_IS_BUSTED */
#endif
/* INT64_IS_BUSTED */
#endif
/* PROVIDE_64BIT_CRC */
#endif
/* PROVIDE_64BIT_CRC */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment