6
6
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
7
7
* Portions Copyright (c) 1994, Regents of the University of California
8
8
*
9
- * $PostgreSQL: pgsql/src/include/port.h,v 1.78 2005/07/05 17:24:30 momjian Exp $
9
+ * $PostgreSQL: pgsql/src/include/port.h,v 1.79 2005/07/06 21:40:09 momjian Exp $
10
10
*
11
11
*-------------------------------------------------------------------------
12
12
*/
@@ -108,7 +108,7 @@ extern int pg_strncasecmp(const char *s1, const char *s2, size_t n);
108
108
extern unsigned char pg_toupper (unsigned char ch );
109
109
extern unsigned char pg_tolower (unsigned char ch );
110
110
111
- #if defined( USE_SNPRINTF ) && !defined( NO_PGPORT )
111
+ #ifdef USE_SNPRINTF
112
112
extern int pg_vsnprintf (char * str , size_t count , const char * fmt , va_list args );
113
113
extern int pg_snprintf (char * str , size_t count , const char * fmt ,...)
114
114
/* This extension allows gcc to check the format string */
@@ -178,7 +178,7 @@ extern int pclose_check(FILE *stream);
178
178
#define TZNAME_GLOBAL _tzname
179
179
#endif
180
180
181
- #if ( defined(WIN32 ) || defined(__CYGWIN__ )) && !defined( NO_PGPORT )
181
+ #if defined(WIN32 ) || defined(__CYGWIN__ )
182
182
/*
183
183
* Win32 doesn't have reliable rename/unlink during concurrent access,
184
184
* and we need special code to do symlinks.
@@ -204,11 +204,11 @@ extern int pgsymlink(const char *oldpath, const char *newpath);
204
204
#define symlink (oldpath , newpath ) pgsymlink(oldpath, newpath)
205
205
#endif
206
206
207
- #endif /* defined(WIN32) || defined(__CYGWIN__) && !defined(NO_PGPORT) */
207
+ #endif /* defined(WIN32) || defined(__CYGWIN__) */
208
208
209
209
extern bool rmtree (char * path , bool rmtopdir );
210
210
211
- #if defined(WIN32 ) && !defined(__CYGWIN__ ) && !defined( NO_PGPORT )
211
+ #if defined(WIN32 ) && !defined(__CYGWIN__ )
212
212
213
213
/* open() replacement to allow delete of held files and passing
214
214
* of special options. */
0 commit comments