mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
Move setenv compat code to porting.h
This commit is contained in:
parent
133f706bf3
commit
6f494a968d
3 changed files with 9 additions and 17 deletions
|
@ -20,15 +20,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
#include <string>
|
||||
#include <cstring>
|
||||
#include <iostream>
|
||||
#include <cstdlib>
|
||||
#include "gettext.h"
|
||||
#include "util/string.h"
|
||||
#include "porting.h"
|
||||
#include "log.h"
|
||||
|
||||
#ifdef _WIN32
|
||||
#define setenv(n,v,o) _putenv_s(n,v)
|
||||
#endif
|
||||
|
||||
#if USE_GETTEXT && defined(_MSC_VER)
|
||||
#include <windows.h>
|
||||
#include <map>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue