diff options
author | Bruce Momjian <bruce@momjian.us> | 2002-12-30 21:07:26 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2002-12-30 21:07:26 +0000 |
commit | d82794ee33a043ade43db6c7aaa299a2a153ade5 (patch) | |
tree | f499f97732ea08f41f31841aaef7717cd6ce24ee /src/interfaces/libpq/win32.h | |
parent | 896bd121cc4d468245acb76232b95100d5a87e12 (diff) | |
download | postgresql-d82794ee33a043ade43db6c7aaa299a2a153ade5.tar.gz postgresql-d82794ee33a043ade43db6c7aaa299a2a153ade5.zip |
Attached is a patch to provide makefiles, etc. to allow the compilation
of the libpq interface static and dynamic libraries with the freely
downloadable Borland C++ compiler version 5.5 and/or C++ Builder.
Lester Godwin
Diffstat (limited to 'src/interfaces/libpq/win32.h')
-rw-r--r-- | src/interfaces/libpq/win32.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/interfaces/libpq/win32.h b/src/interfaces/libpq/win32.h index 4e8a2141d53..e0abd87678d 100644 --- a/src/interfaces/libpq/win32.h +++ b/src/interfaces/libpq/win32.h @@ -10,10 +10,18 @@ /* * Some other compat functions */ +#ifdef __BORLANDC__ +#define _timeb timeb +#define _ftime(a) ftime(a) +#define _strnicmp(a,b,c) strnicmp(a,b,c) +#define _errno errno +#else #define open(a,b,c) _open(a,b,c) #define close(a) _close(a) #define read(a,b,c) _read(a,b,c) #define write(a,b,c) _write(a,b,c) +#endif + #define popen(a,b) _popen(a,b) #define pclose(a) _pclose(a) #define vsnprintf(a,b,c,d) _vsnprintf(a,b,c,d) |