~ubuntu-branches/ubuntu/hardy/postgresql-8.4/hardy-backports

« back to all changes in this revision

Viewing changes to src/include/port/cygwin.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-03-20 12:00:13 UTC
  • Revision ID: james.westby@ubuntu.com-20090320120013-hogj7egc5mjncc5g
Tags: upstream-8.4~0cvs20090328
ImportĀ upstreamĀ versionĀ 8.4~0cvs20090328

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* $PostgreSQL$ */
 
2
 
 
3
#include <cygwin/version.h>
 
4
 
 
5
/*
 
6
 * Check for b20.1 and disable AF_UNIX family socket support.
 
7
 */
 
8
#if CYGWIN_VERSION_DLL_MAJOR < 1001
 
9
#undef HAVE_UNIX_SOCKETS
 
10
#endif
 
11
 
 
12
#if __GNUC__ && ! defined (__declspec)
 
13
#error You need egcs 1.1 or newer for compiling!
 
14
#endif
 
15
 
 
16
#ifdef BUILDING_DLL
 
17
#define PGDLLIMPORT __declspec (dllexport)
 
18
#else
 
19
#define PGDLLIMPORT __declspec (dllimport)
 
20
 
 
21
#endif