Make sure we use C-linkage, and add winapi-family check. git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@6027 4407c894-4637-0410-b4f5-ada5f102cad1
diff --git a/mingw-w64-headers/include/atacct.h b/mingw-w64-headers/include/atacct.h index 2eed65c..684320e 100644 --- a/mingw-w64-headers/include/atacct.h +++ b/mingw-w64-headers/include/atacct.h
@@ -1,21 +1,22 @@ /** - * This file has no copyright assigned and is placed in the Public Domain. * This file is part of the mingw-w64 runtime package. - * No warranty is given; refer to the file DISCLAIMER.PD within this package. + * No warranty is given; refer to the file DISCLAIMER within this package. */ -#ifndef _INC_ATACCT -#define _INC_ATACCT +#ifndef _ATACCT_H_ +#define _ATACCT_H_ +#include <winapifamily.h> -HRESULT GetNetScheduleAccountInformation( - LPCWSTR pwszServerName, - DWORD ccAccount, - WCHAR wszAccount[] -); +#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP) +#ifdef __cplusplus +extern "C" { +#endif -HRESULT SetNetScheduleAccountInformation( - LPCWSTR pwszServerName, - LPCWSTR pwszAccount, - LPCWSTR pwszPassword -); + STDAPI GetNetScheduleAccountInformation (LPCWSTR pwszServerName, DWORD ccAccount, WCHAR wszAccount[]); + STDAPI SetNetScheduleAccountInformation (LPCWSTR pwszServerName, LPCWSTR pwszAccount, LPCWSTR pwszPassword); -#endif /*_INC_ATACCT*/ +#ifdef __cplusplus +} +#endif +#endif + +#endif