mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-22 16:37:28 +00:00
environment.cpp: MSVC compile fix
MSVC told me "environment.cpp(139): error C4716: 'lyx::support::unsetEnv' : must return a value"
This commit is contained in:
parent
b6e4c709e3
commit
ac7d08cb32
@ -132,7 +132,7 @@ bool unsetEnv(string const & name)
|
||||
return unsetenv(name.c_str()) == 0;
|
||||
#elif defined(HAVE_PUTENV)
|
||||
// This is OK with MSVC and MinGW at least.
|
||||
putenv((name + "=").c_str()) == 0;
|
||||
return putenv((name + "=").c_str()) == 0;
|
||||
#else
|
||||
#error No environment-unsetting function has been defined.
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user