`error: use of undeclared identifier 'NEGOSSP_NAME'`
I encountered the following problem when trying to compile these programs with winegcc:
- https://learn.microsoft.com/en-us/windows/win32/secauthn/using-sspi-with-a-w... - https://learn.microsoft.com/en-us/windows/win32/secauthn/using-sspi-with-a-w...
So, adding this code helps to solve the problem
-- v7: include/security.h: Add definition of NEGOSSP_NAME
From: Vadim Kazakov xipster@etersoft.ru
--- include/security.h | 10 ++++++++++ 1 file changed, 10 insertions(+)
diff --git a/include/security.h b/include/security.h index 11ff6f77044..73982c78ee8 100644 --- a/include/security.h +++ b/include/security.h @@ -17,6 +17,16 @@ #ifndef _SECURITY_H #define _SECURITY_H
+#ifndef NEGOSSP_NAME +#define NEGOSSP_NAME_A "Negotiate" +#if defined(_MSC_VER) || defined(__MINGW32__) +#define NEGOSSP_NAME_W L"Negotiate" +#else +static const WCHAR NEGOSSP_NAME_W[] = { 'N','e','g','o','t','i','a','t','e',0 }; +#endif +#define NEGOSSP_NAME WINELIB_NAME_AW(NEGOSSP_NAME_) +#endif /* NEGOSSP_NAME */ + #include <sspi.h>
#if defined(SECURITY_WIN32) || defined(SECURITY_KERNEL)