From 6d0bf9181121b4c117c80d05a7f097363c531774 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sun, 7 Jun 2009 00:56:23 +0000 Subject: Add Windows CE implementations of some ANSI C functions that are missing. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1553 --- wince/env.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 wince/env.h (limited to 'wince/env.h') diff --git a/wince/env.h b/wince/env.h new file mode 100644 index 00000000..c2cb4243 --- /dev/null +++ b/wince/env.h @@ -0,0 +1,13 @@ +// +// "Extension" implementation of getenv for Windows CE. +// +// I (Simon Howard) release this file to the public domain. +// + +#ifndef WINCE_ENV_H +#define WINCE_ENV_H + +extern char *getenv(const char *name); + +#endif /* #ifndef WINCE_ENV_H */ + -- cgit v1.2.3 From a91a1c60f544d26195c2df9dd9cd1ef042deacf9 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Mon, 8 Jun 2009 18:15:57 +0000 Subject: Use SDL's getenv/putenv implementation, and populate at startup. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1577 --- wince/env.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'wince/env.h') diff --git a/wince/env.h b/wince/env.h index c2cb4243..d91f3fab 100644 --- a/wince/env.h +++ b/wince/env.h @@ -7,7 +7,11 @@ #ifndef WINCE_ENV_H #define WINCE_ENV_H -extern char *getenv(const char *name); +// SDL provides an implementation of getenv/putenv: + +#include "SDL_getenv.h" + +extern void PopulateEnvironment(void); #endif /* #ifndef WINCE_ENV_H */ -- cgit v1.2.3