mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 10:29:59 -04:00
protect with <isc/lang.h> and ISC_LANG_BEGINDECLS/ISC_LANG_ENDDECLS
This commit is contained in:
parent
1a1999555d
commit
e141888b93
1 changed files with 5 additions and 0 deletions
|
|
@ -20,8 +20,11 @@
|
|||
|
||||
#include <windows.h>
|
||||
|
||||
#include <isc/lang.h>
|
||||
#include <isc/result.h>
|
||||
|
||||
ISC_LANG_BEGINDECLS
|
||||
|
||||
typedef CRITICAL_SECTION isc_mutex_t;
|
||||
|
||||
#define isc_mutex_init(mp) \
|
||||
|
|
@ -35,4 +38,6 @@ typedef CRITICAL_SECTION isc_mutex_t;
|
|||
#define isc_mutex_destroy(mp) \
|
||||
(DeleteCriticalSection((mp)), ISC_R_SUCCESS)
|
||||
|
||||
ISC_LANG_ENDDECLS
|
||||
|
||||
#endif /* ISC_MUTEX_H */
|
||||
|
|
|
|||
Loading…
Reference in a new issue