(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:
glx 2009-03-14 15:42:53 +00:00
parent aea8e7291e
commit 1692ce8312
5 changed files with 1 additions and 8 deletions

View File

@ -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>

View File

@ -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"

View File

@ -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)

View File

@ -16,7 +16,6 @@
#include "../texteff.hpp"
#include "win32_v.h"
#include <windows.h>
#include <tchar.h>
static struct {
HWND main_wnd;

View File

@ -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>