~ubuntu-branches/ubuntu/trusty/postgresql-8.4/trusty

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-07-11 16:59:35 UTC
  • mfrom: (5.1.1 karmic)
  • Revision ID: james.westby@ubuntu.com-20090711165935-jfwin6gfrxf0gfsi
Tags: 8.4.0-2
* debian/libpq-dev.install: Ship catalog/genbki.h. (Closes: #536139)
* debian/rules: Drop --enable-cassert for final release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.87 2009/04/19 22:37:13 tgl Exp $ */
 
1
/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.88 2009/06/11 14:49:12 momjian Exp $ */
2
2
 
3
3
#if defined(_MSC_VER) || defined(__BORLANDC__)
4
4
#define WIN32_ONLY_COMPILER
292
292
extern void _dosmaperr(unsigned long);
293
293
 
294
294
/* in port/win32env.c */
295
 
extern int pgwin32_putenv(const char *);
 
295
extern int      pgwin32_putenv(const char *);
296
296
extern void pgwin32_unsetenv(const char *);
 
297
 
297
298
#define putenv(x) pgwin32_putenv(x)
298
299
#define unsetenv(x) pgwin32_unsetenv(x)
299
300
 
300
301
/* Things that exist in MingW headers, but need to be added to MSVC & BCC */
301
302
#ifdef WIN32_ONLY_COMPILER
302
303
typedef long ssize_t;
 
304
 
303
305
#ifndef __BORLANDC__
304
306
typedef unsigned short mode_t;
305
307
#endif
346
348
#ifndef O_RANDOM
347
349
#define O_RANDOM                0x0010  /* File access is primarily random */
348
350
#define O_SEQUENTIAL    0x0020  /* File access is primarily sequential */
349
 
#define O_TEMPORARY     0x0040  /* Temporary file bit */
 
351
#define O_TEMPORARY 0x0040              /* Temporary file bit */
350
352
#define O_SHORT_LIVED   0x1000  /* Temporary storage file, try not to flush */
351
353
#define _O_SHORT_LIVED  O_SHORT_LIVED
352
 
#endif /* ifndef O_RANDOM */
353
 
 
354
 
#endif /* __BORLANDC__ */
 
354
#endif   /* ifndef O_RANDOM */
 
355
#endif   /* __BORLANDC__ */
355
356
 
356
357
#endif