Fixes for compilation under Windows (specifically MSVC). Also added MSVC supported "_inline", and fixed some WIN32 specific warnings.

This commit is contained in:
Iain Denniston
2011-03-18 12:35:19 +00:00
committed by Marcelo Roberto Jimenez
parent fed316ff3e
commit 92ea719804
15 changed files with 59 additions and 28 deletions

View File

@@ -922,7 +922,8 @@ static UPNP_INLINE int ithread_cleanup_thread(void) {
#endif
#if !defined(PTHREAD_MUTEX_RECURSIVE) && !defined(__DragonFly__)
#if !defined(PTHREAD_MUTEX_RECURSIVE) && !defined(__DragonFly__) && !defined(UPNP_USE_MSVCPP)
/* !defined(UPNP_USE_MSVCPP) should probably also have pthreads version check - but it's not clear if that is possible */
/* NK: Added for satisfying the gcc compiler */
EXPORT_SPEC int pthread_mutexattr_setkind_np(pthread_mutexattr_t *attr, int kind);
#endif