Skip to content

Commit

Permalink
winidn: drop the _SAL_VERSION case
Browse files Browse the repository at this point in the history
The definitions are now only enabled with old systems. We assume that
code analysis is not run on such systems, allowing us to delete the
SAL-friendly flavour of these.
  • Loading branch information
vszakats committed Oct 24, 2022
1 parent 322d262 commit bd4b0c5
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions lib/idn_win32.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,20 +38,6 @@
#include "memdebug.h"

#if !defined(_WIN32_WINNT) || _WIN32_WINNT < 0x600
# if defined(_SAL_VERSION)
WINNORMALIZEAPI int WINAPI
IdnToAscii(_In_ DWORD dwFlags,
_In_reads_(cchUnicodeChar) LPCWSTR lpUnicodeCharStr,
_In_ int cchUnicodeChar,
_Out_writes_opt_(cchASCIIChar) LPWSTR lpASCIICharStr,
_In_ int cchASCIIChar);
WINNORMALIZEAPI int WINAPI
IdnToUnicode(_In_ DWORD dwFlags,
_In_reads_(cchASCIIChar) LPCWSTR lpASCIICharStr,
_In_ int cchASCIIChar,
_Out_writes_opt_(cchUnicodeChar) LPWSTR lpUnicodeCharStr,
_In_ int cchUnicodeChar);
# else
WINBASEAPI int WINAPI IdnToAscii(DWORD dwFlags,
const WCHAR *lpUnicodeCharStr,
int cchUnicodeChar,
Expand All @@ -62,7 +48,6 @@ WINBASEAPI int WINAPI IdnToUnicode(DWORD dwFlags,
int cchASCIIChar,
WCHAR *lpUnicodeCharStr,
int cchUnicodeChar);
# endif
#endif

#define IDN_MAX_LENGTH 255
Expand Down

0 comments on commit bd4b0c5

Please sign in to comment.