mirror of
https://github.com/FreeRDP/FreeRDP.git
synced 2024-12-04 15:23:32 +08:00
winpr: fix compilation for mingw
Depending on the version of mingw some export macro aren't always defined.
This commit is contained in:
parent
fe4c30fc54
commit
a6cadd6f97
@ -22,6 +22,8 @@ include_directories(..)
|
||||
|
||||
add_library(helpers STATIC
|
||||
helpers.c)
|
||||
target_link_libraries(helpers freerdp)
|
||||
|
||||
|
||||
add_executable(${MODULE_NAME} ${${MODULE_PREFIX}_SRCS})
|
||||
|
||||
|
@ -110,7 +110,12 @@ typedef VOID (*PTP_WIN32_IO_CALLBACK)(PTP_CALLBACK_INSTANCE Instance, PVOID Cont
|
||||
|
||||
#endif
|
||||
|
||||
#if (!defined(_WIN32) || ((defined(_WIN32) && (_WIN32_WINNT < 0x0600))))
|
||||
|
||||
#if !defined(_WIN32)
|
||||
#define WINPR_THREAD_POOL 1
|
||||
#elif defined(_WIN32) && (_WIN32_WINNT < 0x0600)
|
||||
#define WINPR_THREAD_POOL 1
|
||||
#elif defined(__MINGW32__) && (__MINGW64_VERSION_MAJOR < 9)
|
||||
#define WINPR_THREAD_POOL 1
|
||||
#endif
|
||||
|
||||
|
@ -965,15 +965,16 @@ extern "C++"
|
||||
|
||||
#endif
|
||||
|
||||
#if !defined(__MINGW32__)
|
||||
#if defined(_WIN32) || defined(__CYGWIN__)
|
||||
#ifdef __GNUC__
|
||||
#define DECLSPEC_EXPORT __attribute__((dllexport))
|
||||
#ifndef DECLSPEC_IMPORT
|
||||
#define DECLSPEC_IMPORT __attribute__((dllimport))
|
||||
#endif /* DECLSPEC_IMPORT */
|
||||
#else
|
||||
#define DECLSPEC_EXPORT __declspec(dllexport)
|
||||
#define DECLSPEC_IMPORT __declspec(dllimport)
|
||||
#endif
|
||||
#endif /* __GNUC__ */
|
||||
#else
|
||||
#if defined(__GNUC__) && __GNUC__ >= 4
|
||||
#define DECLSPEC_EXPORT __attribute__((visibility("default")))
|
||||
@ -983,6 +984,5 @@ extern "C++"
|
||||
#define DECLSPEC_IMPORT
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif /* WINPR_SPEC_H */
|
||||
|
Loading…
Reference in New Issue
Block a user