Commit 17ae0d14 authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Correct definition of MS2_PUBLIC for Windows.

parent a9fd7d61
......@@ -528,6 +528,7 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/mediastreamer-config.h.cmake ${CMAKE_
set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/mediastreamer-config.h PROPERTIES GENERATED ON)
add_definitions("-DHAVE_CONFIG_H")
add_definitions(${ORTP_CPPFLAGS})
add_definitions("-DMS2_EXPORTS")
if(ANDROID)
add_definitions("-DANDROID")
endif()
......
......@@ -92,9 +92,14 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#endif
#if defined(_MSC_VER)
#ifdef MS2_EXPORTS
#define MS2_PUBLIC __declspec(dllexport)
#define MS2_VAR_PUBLIC extern __declspec(dllexport)
#else
#define MS2_PUBLIC __declspec(dllimport)
#define MS2_VAR_PUBLIC extern __declspec(dllimport)
#endif
#else
#define MS2_PUBLIC
#define MS2_VAR_PUBLIC extern
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment