_timeval.h (timercmp): Added missing parens around the AND condition. git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/stable/v2.x@4487 4407c894-4637-0410-b4f5-ada5f102cad1
diff --git a/mingw-w64-headers/crt/ChangeLog b/mingw-w64-headers/crt/ChangeLog index 142fb05..f892078 100644 --- a/mingw-w64-headers/crt/ChangeLog +++ b/mingw-w64-headers/crt/ChangeLog
@@ -1,7 +1,12 @@ +2011-09-21 Ozkan Sezer <sezeroz@gmail.com> + + * _timeval.h (timercmp): Added missing parens around the AND + condition. + 2011-09-17 Jonathan Yong <jon_y@users.sourceforge.net> - * pthread_time.h: New dummy header. - * time.h: Include dummy header to support winpthreads. + * pthread_time.h: New dummy header. + * time.h: Include dummy header to support winpthreads. 2011-09-12 Jonathan Yong <jon_y@users.sourceforge.net>
diff --git a/mingw-w64-headers/crt/_timeval.h b/mingw-w64-headers/crt/_timeval.h index 7d3bf2f..407e788 100644 --- a/mingw-w64-headers/crt/_timeval.h +++ b/mingw-w64-headers/crt/_timeval.h
@@ -16,7 +16,7 @@ #define timerisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec) #define timercmp(tvp,uvp,cmp) \ ((tvp)->tv_sec cmp (uvp)->tv_sec || \ - (tvp)->tv_sec == (uvp)->tv_sec && (tvp)->tv_usec cmp (uvp)->tv_usec) + ((tvp)->tv_sec == (uvp)->tv_sec && (tvp)->tv_usec cmp (uvp)->tv_usec)) #define timerclear(tvp) (tvp)->tv_sec = (tvp)->tv_usec = 0 #endif /* _TIMEVAL_DEFINED */