winpr: fix compilation error on Windows.

This commit is contained in:
Vic Lee 2012-08-12 14:27:55 +08:00
parent d5930f8d99
commit 5d6ff1536c
3 changed files with 5 additions and 5 deletions

View File

@ -208,6 +208,9 @@ typedef struct _SECURITY_ATTRIBUTES
BOOL bInheritHandle; BOOL bInheritHandle;
} SECURITY_ATTRIBUTES, *PSECURITY_ATTRIBUTES, *LPSECURITY_ATTRIBUTES; } SECURITY_ATTRIBUTES, *PSECURITY_ATTRIBUTES, *LPSECURITY_ATTRIBUTES;
typedef void* HMODULE;
typedef void* FARPROC;
#endif #endif
typedef BYTE byte; typedef BYTE byte;
@ -223,7 +226,4 @@ typedef LONG NTSTATUS;
typedef NTSTATUS *PNTSTATUS; typedef NTSTATUS *PNTSTATUS;
#endif #endif
typedef void* HMODULE;
typedef void* FARPROC;
#endif /* WINPR_WTYPES_H */ #endif /* WINPR_WTYPES_H */

View File

@ -38,10 +38,10 @@ if(WIN32)
target_link_libraries(freerdp-crypto ws2_32) target_link_libraries(freerdp-crypto ws2_32)
else() else()
target_link_libraries(freerdp-crypto ${ZLIB_LIBRARIES}) target_link_libraries(freerdp-crypto ${ZLIB_LIBRARIES})
target_link_libraries(freerdp-crypto winpr-library)
endif() endif()
target_link_libraries(freerdp-crypto winpr-sspi) target_link_libraries(freerdp-crypto winpr-sspi)
target_link_libraries(freerdp-crypto winpr-library)
target_link_libraries(freerdp-crypto freerdp-utils) target_link_libraries(freerdp-crypto freerdp-utils)
target_link_libraries(freerdp-crypto ${OPENSSL_LIBRARIES}) target_link_libraries(freerdp-crypto ${OPENSSL_LIBRARIES})

View File

@ -62,10 +62,10 @@ set_target_properties(winpr-sspi PROPERTIES VERSION ${FREERDP_VERSION_FULL} SOVE
if (NOT WIN32) if (NOT WIN32)
target_link_libraries(winpr-sspi winpr-crt) target_link_libraries(winpr-sspi winpr-crt)
target_link_libraries(winpr-sspi winpr-sysinfo) target_link_libraries(winpr-sspi winpr-sysinfo)
target_link_libraries(winpr-sspi winpr-registry)
endif() endif()
target_link_libraries(winpr-sspi winpr-utils) target_link_libraries(winpr-sspi winpr-utils)
target_link_libraries(winpr-sspi winpr-registry)
target_link_libraries(winpr-sspi ${ZLIB_LIBRARIES}) target_link_libraries(winpr-sspi ${ZLIB_LIBRARIES})
target_link_libraries(winpr-sspi ${OPENSSL_LIBRARIES}) target_link_libraries(winpr-sspi ${OPENSSL_LIBRARIES})