summaryrefslogtreecommitdiff
path: root/include/environment.h
diff options
context:
space:
mode:
authorIgor Grinberg <grinberg@compulab.co.il>2011-11-17 06:07:23 +0000
committerStefano Babic <sbabic@denx.de>2011-11-22 08:39:25 +0100
commit994bc671cf8fd3f6d41bb680da738f814f4a9f38 (patch)
tree27a33cdeef18689c4adc5d4f532df3197de9b5fe /include/environment.h
parentd1459f0fab1ac145051a74094c96592c694f84af (diff)
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 <grinberg@compulab.co.il>
Diffstat (limited to 'include/environment.h')
-rw-r--r--include/environment.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/environment.h b/include/environment.h
index 20775da7015..951803f1b6c 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