aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2006-10-19 18:32:48 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2006-10-19 18:32:48 +0000
commitdef651f48f6e8e8e2bc8bb604d443f4c10136d5f (patch)
tree1772397307ecfee9c2563c34cf4fda0bd5b17d77 /src/include
parentfd38d726a962e697e14b8979eaddabd84ba4b789 (diff)
downloadpostgresql-def651f48f6e8e8e2bc8bb604d443f4c10136d5f.tar.gz
postgresql-def651f48f6e8e8e2bc8bb604d443f4c10136d5f.zip
Clean up local redeclarations of variables with DLLIMPORT, per report
from Magnus that MSVC complains about this.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/miscadmin.h8
-rw-r--r--src/include/postmaster/syslogger.h6
-rw-r--r--src/include/storage/buf_internals.h4
-rw-r--r--src/include/storage/freespace.h6
-rw-r--r--src/include/utils/guc.h6
5 files changed, 15 insertions, 15 deletions
diff --git a/src/include/miscadmin.h b/src/include/miscadmin.h
index 887fe8fdb65..f21717e7b69 100644
--- a/src/include/miscadmin.h
+++ b/src/include/miscadmin.h
@@ -13,7 +13,7 @@
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/miscadmin.h,v 1.189 2006/09/04 15:07:46 petere Exp $
+ * $PostgreSQL: pgsql/src/include/miscadmin.h,v 1.190 2006/10/19 18:32:47 tgl Exp $
*
* NOTES
* some of the information in this file should be moved to other files.
@@ -70,8 +70,8 @@ extern volatile bool ProcDiePending;
/* these are marked volatile because they are examined by signal handlers: */
extern volatile bool ImmediateInterruptOK;
-extern volatile uint32 InterruptHoldoffCount;
-extern volatile uint32 CritSectionCount;
+extern DLLIMPORT volatile uint32 InterruptHoldoffCount;
+extern DLLIMPORT volatile uint32 CritSectionCount;
/* in tcop/postgres.c */
extern void ProcessInterrupts(void);
@@ -125,7 +125,7 @@ extern bool IsUnderPostmaster;
extern bool ExitOnAnyError;
-extern char *DataDir;
+extern DLLIMPORT char *DataDir;
extern DLLIMPORT int NBuffers;
extern int MaxBackends;
diff --git a/src/include/postmaster/syslogger.h b/src/include/postmaster/syslogger.h
index 0629553da9c..000072563e8 100644
--- a/src/include/postmaster/syslogger.h
+++ b/src/include/postmaster/syslogger.h
@@ -5,7 +5,7 @@
*
* Copyright (c) 2004-2006, PostgreSQL Global Development Group
*
- * $PostgreSQL: pgsql/src/include/postmaster/syslogger.h,v 1.6 2006/03/05 15:58:58 momjian Exp $
+ * $PostgreSQL: pgsql/src/include/postmaster/syslogger.h,v 1.7 2006/10/19 18:32:47 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -16,8 +16,8 @@
extern bool Redirect_stderr;
extern int Log_RotationAge;
extern int Log_RotationSize;
-extern char *Log_directory;
-extern char *Log_filename;
+extern DLLIMPORT char *Log_directory;
+extern DLLIMPORT char *Log_filename;
extern bool Log_truncate_on_rotation;
extern bool am_syslogger;
diff --git a/src/include/storage/buf_internals.h b/src/include/storage/buf_internals.h
index 18239176b8e..9b830154c2d 100644
--- a/src/include/storage/buf_internals.h
+++ b/src/include/storage/buf_internals.h
@@ -8,7 +8,7 @@
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/storage/buf_internals.h,v 1.87 2006/07/23 03:07:58 tgl Exp $
+ * $PostgreSQL: pgsql/src/include/storage/buf_internals.h,v 1.88 2006/10/19 18:32:47 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -162,7 +162,7 @@ typedef struct sbufdesc
/* in buf_init.c */
-extern BufferDesc *BufferDescriptors;
+extern DLLIMPORT BufferDesc *BufferDescriptors;
/* in localbuf.c */
extern BufferDesc *LocalBufferDescriptors;
diff --git a/src/include/storage/freespace.h b/src/include/storage/freespace.h
index 404fb2f9558..f6b54365832 100644
--- a/src/include/storage/freespace.h
+++ b/src/include/storage/freespace.h
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/storage/freespace.h,v 1.23 2006/10/04 00:30:10 momjian Exp $
+ * $PostgreSQL: pgsql/src/include/storage/freespace.h,v 1.24 2006/10/19 18:32:47 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -124,8 +124,8 @@ struct FSMRelation
/* GUC variables */
-extern int MaxFSMRelations;
-extern int MaxFSMPages;
+extern DLLIMPORT int MaxFSMRelations;
+extern DLLIMPORT int MaxFSMPages;
/*
diff --git a/src/include/utils/guc.h b/src/include/utils/guc.h
index 403d022b7a7..db048bf50bb 100644
--- a/src/include/utils/guc.h
+++ b/src/include/utils/guc.h
@@ -7,7 +7,7 @@
* Copyright (c) 2000-2006, PostgreSQL Global Development Group
* Written by Peter Eisentraut <peter_e@gmx.net>.
*
- * $PostgreSQL: pgsql/src/include/utils/guc.h,v 1.75 2006/08/14 02:27:27 momjian Exp $
+ * $PostgreSQL: pgsql/src/include/utils/guc.h,v 1.76 2006/10/19 18:32:47 tgl Exp $
*--------------------------------------------------------------------
*/
#ifndef GUC_H
@@ -115,9 +115,9 @@ extern bool log_executor_stats;
extern bool log_statement_stats;
extern bool log_btree_build_stats;
-extern bool SQL_inheritance;
-
+extern DLLIMPORT bool check_function_bodies;
extern bool default_with_oids;
+extern bool SQL_inheritance;
extern int log_min_error_statement;
extern int log_min_messages;