diff options
Diffstat (limited to 'src/include/port.h')
-rw-r--r-- | src/include/port.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/include/port.h b/src/include/port.h index c03e72f163d..58585fc77dc 100644 --- a/src/include/port.h +++ b/src/include/port.h @@ -6,7 +6,7 @@ * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/port.h,v 1.53 2004/08/17 14:38:38 momjian Exp $ + * $PostgreSQL: pgsql/src/include/port.h,v 1.54 2004/08/18 02:59:11 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -50,6 +50,7 @@ extern void get_lib_path(const char *my_exec_path, char *ret_path); extern void get_pkglib_path(const char *my_exec_path, char *ret_path); extern void get_locale_path(const char *my_exec_path, char *ret_path); extern void set_pglocale_pgservice(const char *argv0, const char *app); +extern bool get_home_path(char *ret_path); /* * is_absolute_path @@ -74,9 +75,6 @@ extern void set_pglocale_pgservice(const char *argv0, const char *app); #endif - - - /* Portable way to find binaries */ extern int find_my_exec(const char *argv0, char *retpath); 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, #define SYSTEMQUOTE "" #endif +#ifdef WIN32 +#define HOMEDIR "USERPROFILE" +#else +#define HOMEDIR "HOME" +#endif + /* Portable delay handling */ extern void pg_usleep(long microsec); |