Fixes for gcc4 on cygwin.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28848 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Enrico Forestieri 2009-03-18 11:52:26 +00:00
parent 4def25e09d
commit c23a63478a
3 changed files with 6 additions and 1 deletions

View File

@ -352,6 +352,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.