include: Use proper dllimports for wininet functions.

This commit is contained in:
Alexandre Julliard 2022-12-07 14:15:30 +01:00
parent 19b4814fd3
commit 9be166e251
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,4 @@
EXTRADEFS = -D_WININET_INTERNAL_
MODULE = wininet.dll
IMPORTLIB = wininet
IMPORTS = $(ZLIB_PE_LIBS) mpr shlwapi shell32 user32 ws2_32 advapi32

View file

@ -23,7 +23,14 @@
extern "C" {
#endif
#define INTERNETAPI
#ifndef INTERNETAPI
#ifdef _WININET_INTERNAL_
# define INTERNETAPI
#else
# define INTERNETAPI DECLSPEC_IMPORT
#endif
#endif
#define BOOLAPI INTERNETAPI BOOL WINAPI
typedef LPVOID HINTERNET;