diff options
| author | 2011-01-01 23:36:37 +0000 | |
|---|---|---|
| committer | 2011-01-01 23:36:37 +0000 | |
| commit | 09abd828b67133471036902eec30b00349b54562 (patch) | |
| tree | 495977499c86314ae5beab6cb8eb4edf02398338 /src | |
| parent | The big rename for modules. Still some details remaining. (diff) | |
| download | KVIrc-09abd828b67133471036902eec30b00349b54562.tar.gz KVIrc-09abd828b67133471036902eec30b00349b54562.tar.bz2 KVIrc-09abd828b67133471036902eec30b00349b54562.zip | |
Fix a compilation error under windows
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@5285 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src')
| -rw-r--r-- | src/kvilib/system/KviEnvironment.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/kvilib/system/KviEnvironment.h b/src/kvilib/system/KviEnvironment.h index 794b0ddc6..4e70b0238 100644 --- a/src/kvilib/system/KviEnvironment.h +++ b/src/kvilib/system/KviEnvironment.h @@ -35,6 +35,10 @@ #include <stdlib.h> +#if defined(COMPILE_ON_WINDOWS) || defined(COMPILE_ON_MINGW) + #include <windows.h> +#endif + namespace KviEnvironment { @@ -49,7 +53,7 @@ namespace KviEnvironment } #if defined(COMPILE_ON_WINDOWS) || defined(COMPILE_ON_MINGW) - #include <windows.h> + inline void setVariable(const char * szName,const char * szValue) { SetEnvironmentVariable(szName,szValue); |
