summaryrefslogtreecommitdiffstats
path: root/include/environment.h
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2012-01-11 01:53:10 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2012-01-11 09:36:30 +0100
commit487c34d859b9d9442b38dbb6086e4f868abef068 (patch)
tree5e844d55f2cb81460bd1f6955031a7d40ee02bda /include/environment.h
parent77b1e275301bc5792835d6f91d22c4bd9e4f34ac (diff)
downloadbarebox-487c34d859b9d9442b38dbb6086e4f868abef068.tar.gz
barebox-487c34d859b9d9442b38dbb6086e4f868abef068.tar.xz
environment: export_/getenv_ull as inline ifndef CONFIG_ENVIRONMENT_VARIABLES
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/environment.h')
-rw-r--r--include/environment.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/include/environment.h b/include/environment.h
index 6d38755ae7..7ece7c9a8a 100644
--- a/include/environment.h
+++ b/include/environment.h
@@ -47,6 +47,8 @@ char *var_name(struct variable_d *);
#ifdef CONFIG_ENVIRONMENT_VARIABLES
const char *getenv(const char *);
int setenv(const char *, const char *);
+void export_env_ull(const char *name, unsigned long long val);
+unsigned long long getenv_ull(const char *name);
#else
static inline char *getenv(const char *var)
{
@@ -57,11 +59,13 @@ static inline int setenv(const char *var, const char *val)
{
return 0;
}
+static inline void export_env_ull(const char *name, unsigned long long val) {}
+static inline unsigned long long getenv_ull(const char *name)
+{
+ return 0;
+}
#endif
-void export_env_ull(const char *name, unsigned long long val);
-unsigned long long getenv_ull(const char *name);
-
int env_pop_context(void);
int env_push_context(void);