- Define GUIDs correctly to prevent "multiple definition" errors
authorCameron Gutman <aicommander@gmail.com>
Fri, 16 Oct 2009 04:20:34 +0000 (04:20 +0000)
committerCameron Gutman <aicommander@gmail.com>
Fri, 16 Oct 2009 04:20:34 +0000 (04:20 +0000)
svn path=/trunk/; revision=43509

reactos/include/reactos/winsock/nsp_dns.h

index c8c0e0c..75b5e61 100644 (file)
 
 /* Includes */
 #include <svcguid.h>
+#include <guiddef.h>
 
 /* Globals */
-GUID HostnameGuid = SVCID_HOSTNAME;
-GUID AddressGuid = SVCID_INET_HOSTADDRBYINETSTRING;
-GUID HostAddrByNameGuid = SVCID_INET_HOSTADDRBYNAME;
-GUID IANAGuid = SVCID_INET_SERVICEBYNAME;
-GUID InetHostName = SVCID_INET_HOSTADDRBYNAME;
-GUID Ipv6Guid = SVCID_DNS_TYPE_AAAA;
+const GUID DECLSPEC_SELECTANY HostnameGuid = SVCID_HOSTNAME;
+const GUID DECLSPEC_SELECTANY AddressGuid = SVCID_INET_HOSTADDRBYINETSTRING;
+const GUID DECLSPEC_SELECTANY HostAddrByNameGuid = SVCID_INET_HOSTADDRBYNAME;
+const GUID DECLSPEC_SELECTANY IANAGuid = SVCID_INET_SERVICEBYNAME;
+const GUID DECLSPEC_SELECTANY InetHostName = SVCID_INET_HOSTADDRBYNAME;
+const GUID DECLSPEC_SELECTANY Ipv6Guid = SVCID_DNS_TYPE_AAAA;
 
 /* Macros and Defines */
 #define RNR_BUFFER_SIZE 512