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.
This commit is contained in:
Thomas Vander Stichele 2005-10-07 12:45:49 +00:00
parent 09fb8afea5
commit 100a96c969
3 changed files with 9 additions and 3 deletions

View file

@ -1,3 +1,9 @@
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:

2
common

@ -1 +1 @@
Subproject commit fb4bd52a0a6e882bd8eb0ca836edd94d3fcaea42
Subproject commit eb0dd118a086dd4aa405d3871131839d81306245

View file

@ -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)))
/**