diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2011-01-25 17:05:40 +0100 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2011-01-25 19:46:52 +0100 |
commit | b0e152368558b64dd7bdc912bcecfdee03aed8fd (patch) | |
tree | 38c8c783a21cc5e186832ba7b3c398ed8e0a0b1c /common/ring.h | |
parent | c1a567d1942aea3b1cf99432f5b0d5fa99cd5285 (diff) |
common: sync with upstream
Diffstat (limited to 'common/ring.h')
-rw-r--r-- | common/ring.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/common/ring.h b/common/ring.h index 91d4794..0194959 100644 --- a/common/ring.h +++ b/common/ring.h @@ -21,16 +21,17 @@ #include <stddef.h> +#ifndef ASSERT +# include <assert.h> +# define ASSERT(X) assert(X) +#endif + typedef struct Ring RingItem; typedef struct Ring { RingItem *prev; RingItem *next; } Ring; -#ifndef ASSERT -# define ASSERT(X) -#endif - static inline void ring_init(Ring *ring) { ring->next = ring->prev = ring; |