From b3aef49eeaa42127ac57ded3b15228db39f806b3 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Wed, 8 Apr 2020 01:21:00 -0400 Subject: [PATCH] zig provides shlwapi.lib for *-windows-gnu closes #3711 --- lib/libc/mingw/lib-common/shlwapi.def | 386 ++++++++++++++++++++++++++ lib/libc/mingw/lib32/shlwapi.def | 376 +++++++++++++++++++++++++ src/link.cpp | 1 + 3 files changed, 763 insertions(+) create mode 100644 lib/libc/mingw/lib-common/shlwapi.def create mode 100644 lib/libc/mingw/lib32/shlwapi.def diff --git a/lib/libc/mingw/lib-common/shlwapi.def b/lib/libc/mingw/lib-common/shlwapi.def new file mode 100644 index 0000000000..850fa7f920 --- /dev/null +++ b/lib/libc/mingw/lib-common/shlwapi.def @@ -0,0 +1,386 @@ +; +; Definition file of SHLWAPI.dll +; Automatic generated by gendef +; written by Kai Tietz 2008-2014 +; +LIBRARY "SHLWAPI.dll" +EXPORTS +ParseURLA +ParseURLW +SHAllocShared +SHLockShared +SHUnlockShared +SHFreeShared +SHCreateMemStream +GetAcceptLanguagesA +GetAcceptLanguagesW +SHCreateThread +IsCharSpaceW +StrCmpNCA +StrCmpNCW +StrCmpNICA +StrCmpNICW +StrCmpCA +StrCmpCW +StrCmpICA +StrCmpICW +IUnknown_QueryStatus +IUnknown_Exec +ConnectToConnectionPoint +IUnknown_AtomicRelease +IUnknown_GetWindow +IUnknown_SetSite +IUnknown_QueryService +IStream_Read +SHMessageBoxCheckA +SHMessageBoxCheckW +IUnknown_Set +SHStripMneumonicA +SHIsChildOrSelf +IStream_Write +IStream_Reset +IStream_Size +SHAnsiToUnicode +SHUnicodeToAnsi +SHUnicodeToAnsiCP +QISearch +SHStripMneumonicW +SHPinDllOfCLSID +IUnknown_GetSite +GUIDFromStringW +WhichPlatform +SHCreateWorkerWindowW +SHRegGetIntW +SHPackDispParamsV +SHAnsiToAnsi +SHUnicodeToUnicode +SHFormatDateTimeA +SHFormatDateTimeW +MLLoadLibraryA +MLLoadLibraryW +ShellMessageBoxW +MLFreeLibrary +SHSendMessageBroadcastA +SHSendMessageBroadcastW +IsOS +PathFileExistsAndAttributesW +UrlFixupW +SHRunIndirectRegClientCommand +SHLoadIndirectString +IStream_ReadPidl +IStream_WritePidl +SHGetViewStatePropertyBag +IsInternetESCEnabled +SHPropertyBag_ReadStrAlloc +IStream_Copy +DelayLoadFailureHook +SHPropertyBag_WriteBSTR +AssocCreate +AssocGetPerceivedType +AssocIsDangerous +AssocQueryKeyA +AssocQueryKeyW +AssocQueryStringA +AssocQueryStringByKeyA +AssocQueryStringByKeyW +AssocQueryStringW +ChrCmpIA +ChrCmpIW +ColorAdjustLuma +ColorHLSToRGB +IStream_ReadStr +IStream_WriteStr +ColorRGBToHLS +DllGetVersion +GetMenuPosFromID +HashData +SHCreateThreadWithHandle +IntlStrEqWorkerA +IntlStrEqWorkerW +IsCharSpaceA +PathAddBackslashA +PathAddBackslashW +SHRegGetValueFromHKCUHKLM +SHRegGetBoolValueFromHKCUHKLM +PathAddExtensionA +PathAddExtensionW +PathAppendA +PathAppendW +PathBuildRootA +PathBuildRootW +PathCanonicalizeA +PathCanonicalizeW +PathCombineA +PathCombineW +PathCommonPrefixA +PathCommonPrefixW +PathCompactPathA +PathCompactPathExA +PathCompactPathExW +PathCompactPathW +PathCreateFromUrlA +PathCreateFromUrlAlloc +PathCreateFromUrlW +PathFileExistsA +PathFileExistsW +PathFindExtensionA +PathFindExtensionW +PathFindFileNameA +PathFindFileNameW +PathFindNextComponentA +PathFindNextComponentW +PathFindOnPathA +PathFindOnPathW +PathFindSuffixArrayA +PathFindSuffixArrayW +PathGetArgsA +PathGetArgsW +PathGetCharTypeA +PathGetCharTypeW +PathGetDriveNumberA +PathGetDriveNumberW +PathIsContentTypeA +PathIsContentTypeW +PathIsDirectoryA +PathIsDirectoryEmptyA +PathIsDirectoryEmptyW +PathIsDirectoryW +PathIsFileSpecA +PathIsFileSpecW +PathIsLFNFileSpecA +PathIsLFNFileSpecW +PathIsNetworkPathA +PathIsNetworkPathW +PathIsPrefixA +PathIsPrefixW +PathIsRelativeA +PathIsRelativeW +PathIsRootA +PathIsRootW +PathIsSameRootA +PathIsSameRootW +PathIsSystemFolderA +PathIsSystemFolderW +PathIsUNCA +PathIsUNCServerA +PathIsUNCServerShareA +PathIsUNCServerShareW +PathIsUNCServerW +PathIsUNCW +PathIsURLA +PathIsURLW +PathMakePrettyA +PathMakePrettyW +PathMakeSystemFolderA +PathMakeSystemFolderW +PathMatchSpecA +PathMatchSpecExA +PathMatchSpecExW +PathMatchSpecW +PathParseIconLocationA +PathParseIconLocationW +PathQuoteSpacesA +PathQuoteSpacesW +PathRelativePathToA +PathRelativePathToW +PathRemoveArgsA +PathRemoveArgsW +PathRemoveBackslashA +PathRemoveBackslashW +PathRemoveBlanksA +PathRemoveBlanksW +PathRemoveExtensionA +PathRemoveExtensionW +PathRemoveFileSpecA +PathRemoveFileSpecW +PathRenameExtensionA +PathRenameExtensionW +PathSearchAndQualifyA +PathSearchAndQualifyW +PathSetDlgItemPathA +PathSetDlgItemPathW +PathSkipRootA +PathSkipRootW +PathStripPathA +PathStripPathW +PathStripToRootA +PathStripToRootW +PathUnExpandEnvStringsA +PathUnExpandEnvStringsW +PathUndecorateA +PathUndecorateW +PathUnmakeSystemFolderA +PathUnmakeSystemFolderW +PathUnquoteSpacesA +PathUnquoteSpacesW +SHAutoComplete +SHCopyKeyA +SHCopyKeyW +SHCreateShellPalette +SHCreateStreamOnFileA +SHCreateStreamOnFileEx +SHCreateStreamOnFileW +SHCreateStreamWrapper +SHCreateThreadRef +SHDeleteEmptyKeyA +SHDeleteEmptyKeyW +SHDeleteKeyA +SHDeleteKeyW +SHDeleteOrphanKeyA +SHDeleteOrphanKeyW +SHDeleteValueA +SHDeleteValueW +SHEnumKeyExA +SHEnumKeyExW +SHEnumValueA +SHEnumValueW +SHGetInverseCMAP +SHGetThreadRef +SHGetValueA +SHGetValueW +SHIsLowMemoryMachine +SHOpenRegStream2A +SHOpenRegStream2W +SHOpenRegStreamA +SHOpenRegStreamW +SHQueryInfoKeyA +SHQueryInfoKeyW +SHQueryValueExA +SHQueryValueExW +SHRegCloseUSKey +SHRegCreateUSKeyA +SHRegCreateUSKeyW +SHRegDeleteEmptyUSKeyA +SHRegDeleteEmptyUSKeyW +SHRegDeleteUSValueA +SHRegDeleteUSValueW +SHRegDuplicateHKey +SHRegEnumUSKeyA +SHRegEnumUSKeyW +SHRegEnumUSValueA +SHRegEnumUSValueW +SHRegGetBoolUSValueA +SHRegGetBoolUSValueW +SHRegGetPathA +SHRegGetPathW +SHRegGetUSValueA +SHRegGetUSValueW +SHRegGetValueA +SHRegGetValueW +SHRegOpenUSKeyA +SHRegOpenUSKeyW +SHRegQueryInfoUSKeyA +SHRegQueryInfoUSKeyW +SHRegQueryUSValueA +SHRegQueryUSValueW +SHRegSetPathA +SHRegSetPathW +SHRegSetUSValueA +SHRegSetUSValueW +SHRegWriteUSValueA +SHRegWriteUSValueW +SHRegisterValidateTemplate +SHReleaseThreadRef +SHSetThreadRef +SHSetValueA +SHSetValueW +SHSkipJunction +SHStrDupA +SHStrDupW +ShellMessageBoxA +StrCSpnA +StrCSpnIA +StrCSpnIW +StrCSpnW +StrCatBuffA +StrCatBuffW +StrCatChainW +StrCatW +StrChrA +StrChrIA +StrChrIW +StrChrNIW +StrChrNW +StrChrW +StrCmpIW +StrCmpLogicalW +StrCmpNA +StrCmpNIA +StrCmpNIW +StrCmpNW +StrCmpW +StrCpyNW +StrCpyW +StrDupA +StrDupW +StrFormatByteSize64A +StrFormatByteSizeA +StrFormatByteSizeEx +StrFormatByteSizeW +StrFormatKBSizeA +StrFormatKBSizeW +StrFromTimeIntervalA +StrFromTimeIntervalW +StrIsIntlEqualA +StrIsIntlEqualW +StrNCatA +StrNCatW +StrPBrkA +StrPBrkW +StrRChrA +StrRChrIA +StrRChrIW +StrRChrW +StrRStrIA +StrRStrIW +StrRetToBSTR +StrRetToBufA +StrRetToBufW +StrRetToStrA +StrRetToStrW +StrSpnA +StrSpnW +StrStrA +StrStrIA +StrStrIW +StrStrNIW +StrStrNW +StrStrW +StrToInt64ExA +StrToInt64ExW +StrToIntA +StrToIntExA +StrToIntExW +StrToIntW +StrTrimA +StrTrimW +UrlApplySchemeA +UrlApplySchemeW +UrlCanonicalizeA +UrlCanonicalizeW +UrlCombineA +UrlCombineW +UrlCompareA +UrlCompareW +UrlCreateFromPathA +UrlCreateFromPathW +UrlEscapeA +UrlEscapeW +UrlGetLocationA +UrlGetLocationW +UrlGetPartA +UrlGetPartW +UrlHashA +UrlHashW +UrlIsA +UrlIsNoHistoryA +UrlIsNoHistoryW +UrlIsOpaqueA +UrlIsOpaqueW +UrlIsW +UrlUnescapeA +UrlUnescapeW +wnsprintfA +wnsprintfW +wvnsprintfA +wvnsprintfW diff --git a/lib/libc/mingw/lib32/shlwapi.def b/lib/libc/mingw/lib32/shlwapi.def new file mode 100644 index 0000000000..4978994c5d --- /dev/null +++ b/lib/libc/mingw/lib32/shlwapi.def @@ -0,0 +1,376 @@ +; +; Definition file of SHLWAPI.dll +; Automatic generated by gendef +; written by Kai Tietz 2008 +; +LIBRARY "SHLWAPI.dll" +EXPORTS +ParseURLA@8 +ParseURLW@8 +SHAllocShared@12 +SHLockShared@8 +SHUnlockShared@4 +SHFreeShared@8 +SHCreateMemStream@8 +GetAcceptLanguagesA@8 +GetAcceptLanguagesW@8 +SHCreateThread@16 +IsCharSpaceW@4 +StrCmpNCA@12 +StrCmpNCW@12 +StrCmpNICA@12 +StrCmpNICW@12 +StrCmpCA@8 +StrCmpCW@8 +StrCmpICA@8 +StrCmpICW@8 +ConnectToConnectionPoint@24 +IUnknown_AtomicRelease@4 +IUnknown_GetWindow@8 +IUnknown_SetSite@8 +IUnknown_QueryService@16 +IStream_Read@12 +SHMessageBoxCheckA@24 +SHMessageBoxCheckW@24 +IUnknown_Set@8 +SHStripMneumonicA@4 +SHIsChildOrSelf@8 +IStream_Write@12 +IStream_Reset@4 +IStream_Size@8 +SHAnsiToUnicode@12 +SHUnicodeToAnsi@12 +QISearch@16 +SHStripMneumonicW@4 +IUnknown_GetSite@12 +WhichPlatform@0 +SHRegGetIntW@12 +SHAnsiToAnsi@12 +SHUnicodeToUnicode@12 +SHFormatDateTimeA@16 +SHFormatDateTimeW@16 +MLLoadLibraryA@12 +MLLoadLibraryW@12 +ShellMessageBoxW@0 +MLFreeLibrary@0 +SHSendMessageBroadcastA@12 +SHSendMessageBroadcastW@12 +IsOS@4 +UrlFixupW@12 +SHRunIndirectRegClientCommand@8 +SHLoadIndirectString@16 +AssocCreate@24 +AssocGetPerceivedType@16 +AssocIsDangerous@4 +AssocQueryKeyA@20 +AssocQueryKeyW@20 +IStream_ReadPidl@8 +IStream_WritePidl@8 +SHGetViewStatePropertyBag@20 +IsInternetESCEnabled@0 +SHPropertyBag_ReadStrAlloc@12 +IStream_Copy@12 +DelayLoadFailureHook@8 +SHPropertyBag_WriteBSTR@12 +AssocQueryStringA@24 +AssocQueryStringByKeyA@24 +AssocQueryStringByKeyW@24 +AssocQueryStringW@24 +ChrCmpIA@8 +ChrCmpIW@8 +ColorAdjustLuma@12 +ColorHLSToRGB@12 +ColorRGBToHLS@16 +DllGetVersion@4 +GetMenuPosFromID@8 +HashData@16 +IntlStrEqWorkerA@16 +IStream_ReadStr@8 +IStream_WriteStr@8 +IntlStrEqWorkerW@16 +IsCharSpaceA@4 +PathAddBackslashA@4 +PathAddBackslashW@4 +PathAddExtensionA@8 +SHCreateThreadWithHandle@20 +PathAddExtensionW@8 +PathAppendA@8 +PathAppendW@8 +PathBuildRootA@8 +PathBuildRootW@8 +PathCanonicalizeA@8 +PathCanonicalizeW@8 +PathCombineA@12 +PathCombineW@12 +PathCommonPrefixA@12 +PathCommonPrefixW@12 +PathCompactPathA@12 +PathCompactPathExA@16 +PathCompactPathExW@16 +PathCompactPathW@12 +PathCreateFromUrlA@16 +PathCreateFromUrlAlloc@12 +PathCreateFromUrlW@16 +PathFileExistsA@4 +PathFileExistsW@4 +PathFindExtensionA@4 +PathFindExtensionW@4 +PathFindFileNameA@4 +PathFindFileNameW@4 +PathFindNextComponentA@4 +PathFindNextComponentW@4 +PathFindOnPathA@8 +PathFindOnPathW@8 +PathFindSuffixArrayA@12 +PathFindSuffixArrayW@12 +PathGetArgsA@4 +PathGetArgsW@4 +PathGetCharTypeA@4 +PathGetCharTypeW@4 +PathGetDriveNumberA@4 +PathGetDriveNumberW@4 +PathIsContentTypeA@8 +PathIsContentTypeW@8 +PathIsDirectoryA@4 +PathIsDirectoryEmptyA@4 +PathIsDirectoryEmptyW@4 +PathIsDirectoryW@4 +PathIsFileSpecA@4 +PathIsFileSpecW@4 +PathIsLFNFileSpecA@4 +PathIsLFNFileSpecW@4 +PathIsNetworkPathA@4 +PathIsNetworkPathW@4 +PathIsPrefixA@8 +PathIsPrefixW@8 +PathIsRelativeA@4 +PathIsRelativeW@4 +PathIsRootA@4 +PathIsRootW@4 +PathIsSameRootA@8 +PathIsSameRootW@8 +PathIsSystemFolderA@8 +PathIsSystemFolderW@8 +PathIsUNCA@4 +PathIsUNCServerA@4 +PathIsUNCServerShareA@4 +PathIsUNCServerShareW@4 +PathIsUNCServerW@4 +PathIsUNCW@4 +PathIsURLA@4 +PathIsURLW@4 +PathMakePrettyA@4 +PathMakePrettyW@4 +PathMakeSystemFolderA@4 +PathMakeSystemFolderW@4 +PathMatchSpecA@8 +PathMatchSpecExA@12 +PathMatchSpecExW@12 +PathMatchSpecW@8 +PathParseIconLocationA@4 +PathParseIconLocationW@4 +PathQuoteSpacesA@4 +PathQuoteSpacesW@4 +PathRelativePathToA@20 +PathRelativePathToW@20 +PathRemoveArgsA@4 +PathRemoveArgsW@4 +PathRemoveBackslashA@4 +PathRemoveBackslashW@4 +PathRemoveBlanksA@4 +PathRemoveBlanksW@4 +PathRemoveExtensionA@4 +PathRemoveExtensionW@4 +PathRemoveFileSpecA@4 +PathRemoveFileSpecW@4 +PathRenameExtensionA@8 +PathRenameExtensionW@8 +PathSearchAndQualifyA@12 +PathSearchAndQualifyW@12 +PathSetDlgItemPathA@12 +PathSetDlgItemPathW@12 +PathSkipRootA@4 +PathSkipRootW@4 +PathStripPathA@4 +PathStripPathW@4 +PathStripToRootA@4 +PathStripToRootW@4 +PathUnExpandEnvStringsA@12 +PathUnExpandEnvStringsW@12 +PathUndecorateA@4 +PathUndecorateW@4 +PathUnmakeSystemFolderA@4 +PathUnmakeSystemFolderW@4 +PathUnquoteSpacesA@4 +PathUnquoteSpacesW@4 +SHAutoComplete@8 +SHCopyKeyA@16 +SHCopyKeyW@16 +SHCreateShellPalette@4 +SHCreateStreamOnFileA@12 +SHCreateStreamOnFileEx@24 +SHCreateStreamOnFileW@12 +SHCreateStreamWrapper@16 +SHCreateThreadRef@8 +SHDeleteEmptyKeyA@8 +SHDeleteEmptyKeyW@8 +SHDeleteKeyA@8 +SHDeleteKeyW@8 +SHDeleteOrphanKeyA@8 +SHDeleteOrphanKeyW@8 +SHDeleteValueA@12 +SHDeleteValueW@12 +SHEnumKeyExA@16 +SHEnumKeyExW@16 +SHEnumValueA@28 +SHEnumValueW@28 +SHGetInverseCMAP@8 +SHGetThreadRef@4 +SHGetValueA@24 +SHGetValueW@24 +SHIsLowMemoryMachine@4 +SHOpenRegStream2A@16 +SHOpenRegStream2W@16 +SHOpenRegStreamA@16 +SHOpenRegStreamW@16 +SHQueryInfoKeyA@20 +SHQueryInfoKeyW@20 +SHQueryValueExA@24 +SHQueryValueExW@24 +SHRegCloseUSKey@4 +SHRegCreateUSKeyA@20 +SHRegCreateUSKeyW@20 +SHRegDeleteEmptyUSKeyA@12 +SHRegDeleteEmptyUSKeyW@12 +SHRegDeleteUSValueA@12 +SHRegDeleteUSValueW@12 +SHRegDuplicateHKey@4 +SHRegEnumUSKeyA@20 +SHRegEnumUSKeyW@20 +SHRegEnumUSValueA@32 +SHRegEnumUSValueW@32 +SHRegGetBoolUSValueA@16 +SHRegGetBoolUSValueW@16 +SHRegGetPathA@20 +SHRegGetPathW@20 +SHRegGetUSValueA@32 +SHRegGetUSValueW@32 +SHRegGetValueA@28 +SHRegGetValueW@28 +SHRegOpenUSKeyA@20 +SHRegOpenUSKeyW@20 +SHRegQueryInfoUSKeyA@24 +SHRegQueryInfoUSKeyW@24 +SHRegQueryUSValueA@32 +SHRegQueryUSValueW@32 +SHRegSetPathA@20 +SHRegSetPathW@20 +SHRegSetUSValueA@24 +SHRegSetUSValueW@24 +SHRegWriteUSValueA@24 +SHRegWriteUSValueW@24 +SHRegisterValidateTemplate@8 +SHReleaseThreadRef@0 +SHSetThreadRef@4 +SHSetValueA@24 +SHSetValueW@24 +SHSkipJunction@8 +SHStrDupA@8 +SHStrDupW@8 +ShellMessageBoxA@0 +StrCSpnA@8 +StrCSpnIA@8 +StrCSpnIW@8 +StrCSpnW@8 +StrCatBuffA@12 +StrCatBuffW@12 +StrCatChainW@16 +StrCatW@8 +StrChrA@8 +StrChrIA@8 +StrChrIW@8 +StrChrNIW@12 +StrChrNW@12 +StrChrW@8 +StrCmpIW@8 +StrCmpLogicalW@8 +StrCmpNA@12 +StrCmpNIA@12 +StrCmpNIW@12 +StrCmpNW@12 +StrCmpW@8 +StrCpyNW@12 +StrCpyW@8 +StrDupA@4 +StrDupW@4 +StrFormatByteSize64A@16 +StrFormatByteSizeA@12 +StrFormatByteSizeEx@20 +StrFormatByteSizeW@16 +StrFormatKBSizeA@16 +StrFormatKBSizeW@16 +StrFromTimeIntervalA@16 +StrFromTimeIntervalW@16 +StrIsIntlEqualA@16 +StrIsIntlEqualW@16 +StrNCatA@12 +StrNCatW@12 +StrPBrkA@8 +StrPBrkW@8 +StrRChrA@12 +StrRChrIA@12 +StrRChrIW@12 +StrRChrW@12 +StrRStrIA@12 +StrRStrIW@12 +StrRetToBSTR@12 +StrRetToBufA@16 +StrRetToBufW@16 +StrRetToStrA@12 +StrRetToStrW@12 +StrSpnA@8 +StrSpnW@8 +StrStrA@8 +StrStrIA@8 +StrStrIW@8 +StrStrNIW@12 +StrStrNW@12 +StrStrW@8 +StrToInt64ExA@12 +StrToInt64ExW@12 +StrToIntA@4 +StrToIntExA@12 +StrToIntExW@12 +StrToIntW@4 +StrTrimA@8 +StrTrimW@8 +UrlApplySchemeA@16 +UrlApplySchemeW@16 +UrlCanonicalizeA@16 +UrlCanonicalizeW@16 +UrlCombineA@20 +UrlCombineW@20 +UrlCompareA@12 +UrlCompareW@12 +UrlCreateFromPathA@16 +UrlCreateFromPathW@16 +UrlEscapeA@16 +UrlEscapeW@16 +UrlGetLocationA@4 +UrlGetLocationW@4 +UrlGetPartA@20 +UrlGetPartW@20 +UrlHashA@12 +UrlHashW@12 +UrlIsA@8 +UrlIsNoHistoryA@4 +UrlIsNoHistoryW@4 +UrlIsOpaqueA@4 +UrlIsOpaqueW@4 +UrlIsW@8 +UrlUnescapeA@16 +UrlUnescapeW@16 +wnsprintfA +wnsprintfW +wvnsprintfA@16 +wvnsprintfW@16 diff --git a/src/link.cpp b/src/link.cpp index 0c02837630..d4fc7ae228 100644 --- a/src/link.cpp +++ b/src/link.cpp @@ -593,6 +593,7 @@ static const MinGWDef mingw_def_list[] = { {"scarddlg",false}, {"setupapi",false}, {"shell32", true}, + {"shlwapi", false}, {"urlmon", false}, {"user32", true}, {"version", false},