[Spice-devel] [PATCH 5/9] common: ring.h: define ASSERT if undefined
Marc-André Lureau
marcandre.lureau at redhat.com
Tue Jan 25 10:17:24 PST 2011
---
common/ring.h | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/common/ring.h b/common/ring.h
index dcd3fbf..cdfe7e1 100644
--- a/common/ring.h
+++ b/common/ring.h
@@ -21,6 +21,11 @@
#include <stddef.h>
+#ifndef ASSERT
+# include <assert.h>
+# define ASSERT(X) assert(X)
+#endif
+
typedef struct Ring RingItem;
typedef struct Ring {
RingItem *prev;
--
1.7.3.4
More information about the Spice-devel
mailing list