~ubuntu-branches/ubuntu/karmic/postgresql-8.4/karmic-security

« 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-05-05 00:58:06 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20090505005806-c19tt7oyqb7kuw49
Tags: 8.4~beta1+cvs20090503-1
New upstream snapshot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
297
297
#define putenv(x) pgwin32_putenv(x)
298
298
#define unsetenv(x) pgwin32_unsetenv(x)
299
299
 
300
 
/* Things that exist in MingW headers, but need to be added to MSVC */
 
300
/* Things that exist in MingW headers, but need to be added to MSVC & BCC */
301
301
#ifdef WIN32_ONLY_COMPILER
302
302
typedef long ssize_t;
303
303
#ifndef __BORLANDC__
335
335
/* Pulled from Makefile.port in mingw */
336
336
#define DLSUFFIX ".dll"
337
337
 
 
338
#ifdef __BORLANDC__
 
339
 
 
340
/* for port/dirent.c */
 
341
#ifndef INVALID_FILE_ATTRIBUTES
 
342
#define INVALID_FILE_ATTRIBUTES ((DWORD) -1)
 
343
#endif
 
344
 
 
345
/* for port/open.c */
 
346
#ifndef O_RANDOM
 
347
#define O_RANDOM                0x0010  /* File access is primarily random */
 
348
#define O_SEQUENTIAL    0x0020  /* File access is primarily sequential */
 
349
#define O_TEMPORARY     0x0040  /* Temporary file bit */
 
350
#define O_SHORT_LIVED   0x1000  /* Temporary storage file, try not to flush */
 
351
#define _O_SHORT_LIVED  O_SHORT_LIVED
 
352
#endif /* ifndef O_RANDOM */
 
353
 
 
354
#endif /* __BORLANDC__ */
 
355
 
338
356
#endif