Commit d96e72cd authored by Ghislain MARY's avatar Ghislain MARY

Fix opus symbols export when building on Windows.

parent b804590b
......@@ -305,6 +305,11 @@ if(RTCD_SUPPORT)
set(OPUS_HAVE_RTCD 1)
endif()
add_definitions("-DOPUS_BUILD")
if(MSVC AND NOT ENABLE_STATIC)
add_definitions("-DDLL_EXPORT")
endif()
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h)
......
......@@ -23,8 +23,6 @@
#ifndef CONFIG_H
#define CONFIG_H
#define OPUS_BUILD 1
/* Enable SSE functions, if compiled with SSE/SSE2 (note that AMD64 implies SSE2) */
#if defined(_M_X64) || (defined(_M_IX86_FP) && (_M_IX86_FP >= 1))
#define __SSE__ 1
......
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