6
6
* Portions Copyright (c) 1996-2003, 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.53 2004/08/17 14:38:38 momjian Exp $
9
+ * $PostgreSQL: pgsql/src/include/port.h,v 1.54 2004/08/18 02:59:11 momjian Exp $
10
10
*
11
11
*-------------------------------------------------------------------------
12
12
*/
@@ -50,6 +50,7 @@ extern void get_lib_path(const char *my_exec_path, char *ret_path);
50
50
extern void get_pkglib_path (const char * my_exec_path , char * ret_path );
51
51
extern void get_locale_path (const char * my_exec_path , char * ret_path );
52
52
extern void set_pglocale_pgservice (const char * argv0 , const char * app );
53
+ extern bool get_home_path (char * ret_path );
53
54
54
55
/*
55
56
* is_absolute_path
@@ -74,9 +75,6 @@ extern void set_pglocale_pgservice(const char *argv0, const char *app);
74
75
#endif
75
76
76
77
77
-
78
-
79
-
80
78
/* Portable way to find binaries */
81
79
extern int find_my_exec (const char * argv0 , char * retpath );
82
80
extern int find_other_exec (const char * argv0 , const char * target ,
@@ -104,6 +102,12 @@ extern int find_other_exec(const char *argv0, const char *target,
104
102
#define SYSTEMQUOTE ""
105
103
#endif
106
104
105
+ #ifdef WIN32
106
+ #define HOMEDIR "USERPROFILE"
107
+ #else
108
+ #define HOMEDIR "HOME"
109
+ #endif
110
+
107
111
/* Portable delay handling */
108
112
extern void pg_usleep (long microsec );
109
113
0 commit comments