Skip to content

Commit

Permalink
crash fix on windows 32-bit: DNSSD_API required for callbacks (define…
Browse files Browse the repository at this point in the history
…d to stdcall) (HBPVIS#93)
  • Loading branch information
gyohng authored and tribal-tec committed Apr 12, 2019
1 parent 170bd93 commit 8a17770
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions servus/dnssd/servus.h
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ class Servus : public servus::Servus::Impl
return result;
}

static void registerCBS_(DNSServiceRef, DNSServiceFlags,
static void DNSSD_API registerCBS_(DNSServiceRef, DNSServiceFlags,
DNSServiceErrorType error, const char* name,
const char* type, const char* domain,
Servus* servus)
Expand All @@ -248,7 +248,7 @@ class Servus : public servus::Servus::Impl
_result = error;
}

static void _browseCBS(DNSServiceRef, DNSServiceFlags flags,
static void DNSSD_API _browseCBS(DNSServiceRef, DNSServiceFlags flags,
uint32_t interfaceIdx, DNSServiceErrorType error,
const char* name, const char* type,
const char* domain, Servus* servus)
Expand Down Expand Up @@ -291,7 +291,7 @@ class Servus : public servus::Servus::Impl
}
}

static void resolveCBS_(DNSServiceRef, DNSServiceFlags,
static void DNSSD_API resolveCBS_(DNSServiceRef, DNSServiceFlags,
uint32_t /*interfaceIdx*/,
DNSServiceErrorType error, const char* /*name*/,
const char* host, uint16_t /*port*/,
Expand Down

0 comments on commit 8a17770

Please sign in to comment.