From 994bc671cf8fd3f6d41bb680da738f814f4a9f38 Mon Sep 17 00:00:00 2001 From: Igor Grinberg Date: Thu, 17 Nov 2011 06:07:23 +0000 Subject: env: move extern environment[] to environment.h Extract all extern declarations for environment out of c files into the environment.h header. Signed-off-by: Igor Grinberg --- include/environment.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') diff --git a/include/environment.h b/include/environment.h index 20775da701..951803f1b6 100644 --- a/include/environment.h +++ b/include/environment.h @@ -154,6 +154,10 @@ typedef struct environment_s { unsigned char data[ENV_SIZE]; /* Environment data */ } env_t; +#ifdef ENV_IS_EMBEDDED +extern env_t environment; +#endif /* ENV_IS_EMBEDDED */ + extern const unsigned char default_environment[]; #ifndef DO_DEPS_ONLY -- cgit