dhess / c-ringbuf

A ring buffer implemented in C
Other
425 stars 142 forks source link

MIN function is undefined? #8

Open changtj opened 6 years ago

changtj commented 6 years ago

visual studio 2017, stand libraries.

dhess commented 6 years ago

Please see the README — Windows is not supported. However, I may accept a patch if it’s portable and/or clean.

changtj commented 6 years ago

@dhess oh, thanks, i use it on windows. thanks for you work.

dhess commented 6 years ago

Do you have a fix for the MIN macro on Windows?

changtj commented 6 years ago

@dhess

i defined one macro.

define MIN min( a, b) < 0 ? 0 : min( a, b)

the function is small, it is use to define.