pf-ring: protect definition of (un)likely

This patch makes (un)likely declared if and only if they are not
declared before.
pull/119/merge
Eric Leblond 13 years ago committed by Victor Julien
parent fd977601b6
commit 7731cef782

@ -24,8 +24,12 @@
* \author Victor Julien <victor@inliniac.net>
*/
#ifndef likely
#define likely(expr) __builtin_expect(!!(expr), 1)
#endif
#ifndef unlikely
#define unlikely(expr) __builtin_expect(!!(expr), 0)
#endif
/** from http://en.wikipedia.org/wiki/Memory_ordering
*

Loading…
Cancel
Save