gst/gstobject.h: there's no point in wrapping FLAG_SET/_UNSET in STMT macros.

Original commit message from CVS:

* gst/gstobject.h:
there's no point in wrapping FLAG_SET/_UNSET in STMT macros.
Fixes compilation on Windows.
parent 09fb8afe
2005-10-07 Thomas Vander Stichele <thomas at apestaart dot org>
* gst/gstobject.h:
there's no point in wrapping FLAG_SET/_UNSET in STMT macros.
Fixes compilation on Windows.
2005-10-07 Michael Smith <msmith@fluendo.com>
* tools/gst-inspect.c:
......
common @ eb0dd118
Subproject commit fb4bd52a0a6e882bd8eb0ca836edd94d3fcaea42
Subproject commit eb0dd118a086dd4aa405d3871131839d81306245
......@@ -146,7 +146,7 @@ typedef enum
*
* This macro sets the given bits.
*/
#define GST_FLAG_SET(obj,flag) G_STMT_START{ (GST_FLAGS (obj) |= (1<<(flag))); }G_STMT_END
#define GST_FLAG_SET(obj,flag) (GST_FLAGS (obj) |= (1<<(flag)))
/**
* GST_FLAG_UNSET:
* @obj: Object to unset flag in.
......@@ -154,7 +154,7 @@ typedef enum
*
* This macro usets the given bits.
*/
#define GST_FLAG_UNSET(obj,flag) G_STMT_START{ (GST_FLAGS (obj) &= ~(1<<(flag))); }G_STMT_END
#define GST_FLAG_UNSET(obj,flag) (GST_FLAGS (obj) &= ~(1<<(flag)))
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment