mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r15710) -Fix (r15706): for non MSVC io.h needs to be included before defining unlink. Also remove redundant tchar.h includes as it is already in stdafx.h.
This commit is contained in:
parent
aea8e7291e
commit
1692ce8312
|
@ -12,10 +12,6 @@
|
|||
#include <sys/stat.h>
|
||||
|
||||
#ifdef WIN32
|
||||
# include <tchar.h>
|
||||
# ifndef UNICODE
|
||||
# include <io.h>
|
||||
# endif
|
||||
# define access _taccess
|
||||
#else
|
||||
# include <unistd.h>
|
||||
|
|
|
@ -38,7 +38,6 @@ enum {
|
|||
* If no appropiate font is found, the function returns an error */
|
||||
#ifdef WIN32
|
||||
#include <windows.h>
|
||||
#include <tchar.h>
|
||||
#include <shlobj.h> // SHGetFolderPath
|
||||
#include "win32.h"
|
||||
|
||||
|
|
|
@ -247,6 +247,7 @@
|
|||
#if defined(WIN32) || defined(WIN64)
|
||||
char *getcwd(char *buf, size_t size);
|
||||
#include <tchar.h>
|
||||
#include <io.h>
|
||||
|
||||
/* XXX - WinCE without MSVCRT doesn't support wfopen, so it seems */
|
||||
#if !defined(WINCE)
|
||||
|
|
|
@ -16,7 +16,6 @@
|
|||
#include "../texteff.hpp"
|
||||
#include "win32_v.h"
|
||||
#include <windows.h>
|
||||
#include <tchar.h>
|
||||
|
||||
static struct {
|
||||
HWND main_wnd;
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
#include <windows.h>
|
||||
#include <winnt.h>
|
||||
#include <wininet.h>
|
||||
#include <io.h>
|
||||
#include <fcntl.h>
|
||||
#include <shlobj.h> // SHGetFolderPath
|
||||
#include "variables.h"
|
||||
|
@ -26,7 +25,6 @@
|
|||
#include "string_func.h"
|
||||
#include "gamelog.h"
|
||||
#include <ctype.h>
|
||||
#include <tchar.h>
|
||||
#include <errno.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
|
|
Loading…
Reference in New Issue