Fixes for gcc4 on cygwin.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28842 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Enrico Forestieri 2009-03-17 22:35:55 +00:00
parent 44e35d1cd4
commit 12d1cb2076
3 changed files with 6 additions and 1 deletions

View File

@ -358,6 +358,7 @@ char * strerror(int n);
#define BOOST_NO_WSTRING 1
#ifdef __CYGWIN__
# define NOMINMAX
# define BOOST_POSIX 1
# define BOOST_POSIX_API 1
# define BOOST_POSIX_PATH 1

View File

@ -47,6 +47,9 @@
// fcntl()
#include <fcntl.h>
// strerror()
#include <string.h>
#include <cerrno>
#include <cstdio>
#include <cstdlib>

View File

@ -25,6 +25,7 @@
#include <windef.h>
#include <shellapi.h>
#include <shlwapi.h>
#include <limits.h>
#include <sys/cygwin.h>
@ -122,7 +123,7 @@ string convert_path_list(string const & p, PathStyle const & target)
} // namespace anon
void os::init(int, char *[])
void init(int, char *[])
{
// Make sure that the TEMP variable is set
// and sync the Windows environment.