* doc/Doxyfile:

define _MSC_VER so that code guarded by it can
	be processed by doxygen
	* src/lib/evil_stdio.c:
	* src/lib/evil_stdio.h:
	vasprintf() is also not in mingw crt
	* src/lib/evil_unistd.c:
	* src/lib/evil_unistd.h:
	getpid is declared and defined in mingw crt



SVN revision: 49287
This commit is contained in:
Vincent Torri 2010-05-29 10:51:06 +00:00
parent dca0b4ec2b
commit 59384ec82a
6 changed files with 23 additions and 6 deletions

View File

@ -1,3 +1,17 @@
2010-05-29 Vincent Torri <doursse at users dot sf dot net>
* doc/Doxyfile:
define _MSC_VER so that code guarded by it can
be processed by doxygen
* src/lib/evil_stdio.c:
* src/lib/evil_stdio.h:
vasprintf() is also not in mingw crt
* src/lib/evil_unistd.c:
* src/lib/evil_unistd.h:
getpid is declared and defined in mingw crt
2010-04-14 Vincent Torri <doursse at users dot sf dot net>
* src/lib/evil_stdio.c:

View File

@ -1070,7 +1070,7 @@ INCLUDE_FILE_PATTERNS =
# undefined via #undef or recursively expanded use the := operator
# instead of the = operator.
PREDEFINED = _WIN32_WCE __MINGW32CE__
PREDEFINED = _WIN32_WCE __MINGW32CE__ _MSC_VER
# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then
# this tag can be used to specify a list of macro names that should be expanded.

View File

@ -215,7 +215,7 @@ int evil_fclose_native(FILE *stream)
#endif /* _WIN32_WCE */
#ifdef _MSC_VER
#ifdef _WIN32
int
vasprintf(char **strp, const char *fmt, va_list ap)
@ -231,4 +231,4 @@ vasprintf(char **strp, const char *fmt, va_list ap)
return vsprintf(res, fmt, ap);
}
#endif /* _MSC_VER */
#endif /* _WIN32 */

View File

@ -52,11 +52,11 @@ EAPI int evil_fclose_native(FILE *stream);
#endif /* _WIN32_WCE */
#ifdef _MSC_VER
#ifdef _WIN32
EAPI int vasprintf(char **strp, const char *fmt, va_list ap);
#endif /* _MSC_VER */
#endif /* _WIN32 */
/**

View File

@ -85,11 +85,13 @@ evil_gettimeofday(struct timeval *tp, void *tzp __UNUSED__)
*
*/
#ifdef _MSC_VER
pid_t
getpid(void)
{
return (pid_t)GetCurrentProcessId();
}
#endif
/*
* File related functions

View File

@ -68,7 +68,7 @@ EAPI int evil_gettimeofday(struct timeval * tp, void * tzp);
*
*/
#ifdef _MSC_VER
/**
* @brief Return the process identifier of the calling process.
*
@ -83,6 +83,7 @@ EAPI int evil_gettimeofday(struct timeval * tp, void * tzp);
* Supported OS: Windows XP, Windows CE.
*/
EAPI pid_t getpid(void);
#endif
/*