[Spice-devel] [PATCH spice-server 18/33] windows: Undefine some conflicting preprocessor macros
Frediano Ziglio
fziglio at redhat.com
Sat Dec 22 14:27:02 UTC 2018
> On Fri, Dec 21, 2018 at 4:04 PM Frediano Ziglio <fziglio at redhat.com> wrote:
> >
> > Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
>
> I would suggest to wrap with #if _WIN32, otherwise it's really weird
> to see those undef without context.
>
Done, also added a comment like
@@ -39,7 +39,10 @@
#include "red-qxl.h"
+#ifdef _WIN32
+// undefine conflicting preprocessor macros
#undef interface
+#endif
struct QXLState {
QXLWorker qxl_worker;
>
> > ---
> > server/red-qxl.c | 1 +
> > server/reds.c | 3 +++
> > 2 files changed, 4 insertions(+)
> >
> > diff --git a/server/red-qxl.c b/server/red-qxl.c
> > index cec3eefb..886bf9f5 100644
> > --- a/server/red-qxl.c
> > +++ b/server/red-qxl.c
> > @@ -39,6 +39,7 @@
> >
> > #include "red-qxl.h"
> >
> > +#undef interface
> >
> > struct QXLState {
> > QXLWorker qxl_worker;
> > diff --git a/server/reds.c b/server/reds.c
> > index faa62ede..2897aecb 100644
> > --- a/server/reds.c
> > +++ b/server/reds.c
> > @@ -79,6 +79,9 @@
> > #include "net-utils.h"
> > #include "red-stream-device.h"
> >
> > +#undef MAX_MONITORS
> > +#undef interface
> > +
> > #define REDS_MAX_STAT_NODES 100
> >
> > static void reds_client_monitors_config(RedsState *reds,
> > VDAgentMonitorsConfig *monitors_config);
Frediano
More information about the Spice-devel
mailing list