1
1

Per Marco, don't define a "min" function if one is already defined to avoid conflict with cygwin reserved word

This commit was SVN r30241.
Этот коммит содержится в:
Ralph Castain 2014-01-10 18:03:25 +00:00
родитель 880943dc10
Коммит 9566650458

Просмотреть файл

@ -52,10 +52,12 @@ static int reduce_no_order(void *sbuf, void* rbuf, int count,
/* /*
* Useful utility routine * Useful utility routine
*/ */
#if !defined(min)
static inline int min(int a, int b) static inline int min(int a, int b)
{ {
return (a < b) ? a : b; return (a < b) ? a : b;
} }
#endif
/** /**
* Shared memory reduction. * Shared memory reduction.