From 64940e71e9f936bfe8a4412232902fe899dc450d Mon Sep 17 00:00:00 2001 From: Dave Peticolas Date: Fri, 23 Nov 2001 22:00:36 +0000 Subject: [PATCH] Don't compile gnc_[set/put]env unless we need them. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5982 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/core-utils/core-utils.c | 3 +++ src/core-utils/core-utils.h | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core-utils/core-utils.c b/src/core-utils/core-utils.c index 93b31b3dc6..288ebc3d20 100644 --- a/src/core-utils/core-utils.c +++ b/src/core-utils/core-utils.c @@ -31,6 +31,8 @@ * see header for info. \********************************************************************/ +#ifndef HAVE_SETENV + int gnc_setenv(const char *name, const char *value, int overwrite) { @@ -76,3 +78,4 @@ gnc_unsetenv(const char *name) return result; } +#endif diff --git a/src/core-utils/core-utils.h b/src/core-utils/core-utils.h index f4ea027592..d551315ce3 100644 --- a/src/core-utils/core-utils.h +++ b/src/core-utils/core-utils.h @@ -51,5 +51,4 @@ int gnc_unsetenv(const char *name); #error "Must have setenv or putenv." #endif - #endif