* src/lib/Evil.h:

* src/lib/evil.c:
cegcc or mingwce32 does not like relative path,
so _fullpath or other similar function do not exist
on Winodws mobile.
* src/lib/mman/mman.c:
missing #


SVN revision: 33935
This commit is contained in:
doursse 2008-03-05 11:22:46 +00:00 committed by doursse
parent ff821bdc93
commit 43ed37904a
4 changed files with 19 additions and 4 deletions

View File

@ -1,3 +1,14 @@
2008-03-05 Vincent Torri <doursse at users dot sf dot net>
* src/lib/Evil.h:
* src/lib/evil.c:
cegcc or mingwce32 does not like relative path,
so _fullpath or other similar function do not exist
on Winodws mobile.
* src/lib/mman/mman.c:
missing #
2008-03-05 Vincent Torri <doursse at users dot sf dot net>
fix compilation with cegcc and minor fixing

View File

@ -291,8 +291,9 @@ EAPI int pipe(int *fds);
# endif
#endif
#if ! ( defined(__CEGCC__) || defined(__MINGW32CE__) )
/**
* @brief Return aan absolute or full path name for a specified relative path name.
* @brief Return an absolute or full path name for a specified relative path name.
*
* @param file_name The absolute path name.
* @param resolved_name The relative path name.
@ -316,6 +317,7 @@ EAPI int pipe(int *fds);
* @ingroup Evil
*/
EAPI char *realpath(const char *file_name, char *resolved_name);
#endif /* ! __CEGCC__ && ! __MINGW32CE__ */
/**
* @brief Initiates the use of Windows sockets.

View File

@ -1,9 +1,9 @@
#include <stdio.h>
#define WIN32_LEAN_AND_MEAN
#include <winsock2.h>
#undef WIN32_LEAN_AND_MEAN
#include <stdio.h>
#ifndef __CEGCC__
# include <errno.h>
# include <sys/locking.h>
@ -345,11 +345,13 @@ pipe(int *fds)
#endif /* ! __CEGCC__ */
#if ! ( defined(__CEGCC__) || defined(__MINGW32CE__) )
char *
realpath(const char *file_name, char *resolved_name)
{
return _fullpath(resolved_name, file_name, PATH_MAX);
}
#endif /* ! __CEGCC__ && ! __MINGW32CE__ */
int
evil_sockets_init(void)

View File

@ -23,7 +23,7 @@
#if defined(__CEGCC__)
# define CreateFileMapping CreateFileMappingW
# define _get_osfhandle get_osfhandle
elif defined (__MINGW32CE__)
# elif defined (__MINGW32CE__)
# define _get_osfhandle(FILEDES) ((long)FILEDES)
#endif /* ! __CEGCC__ && ! __MINGW32CE__ */