forked from enlightenment/efl
* 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:
parent
ff821bdc93
commit
43ed37904a
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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__ */
|
||||
|
||||
|
|
Loading…
Reference in New Issue