From 78940e69219b6d9aee747bac0677b738531a089d Mon Sep 17 00:00:00 2001 From: Martin Ling Date: Wed, 24 Sep 2014 20:53:03 +0100 Subject: [PATCH] windows: Fix compile issues with multiply or not defined GUIDs. This fixes bug #416. --- libserialport_internal.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libserialport_internal.h b/libserialport_internal.h index 031ffef..8ef8376 100644 --- a/libserialport_internal.h +++ b/libserialport_internal.h @@ -32,12 +32,13 @@ #include #include #ifdef _WIN32 -#include - #include #include #include #include +#undef DEFINE_GUID +#define DEFINE_GUID(name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) \ + static const GUID name = { l,w1,w2,{ b1,b2,b3,b4,b5,b6,b7,b8 } } #include #include #else