浏览代码

Renamed datachannel_EXPORTS to RTC_EXPORTS

Paul-Louis Ageneau 2 年之前
父节点
当前提交
4167556ff7
共有 3 个文件被更改,包括 4 次插入4 次删除
  1. 2 2
      CMakeLists.txt
  2. 1 1
      include/rtc/common.hpp
  3. 1 1
      include/rtc/rtc.h

+ 2 - 2
CMakeLists.txt

@@ -232,7 +232,7 @@ set_target_properties(datachannel PROPERTIES
 	SOVERSION ${PROJECT_VERSION}
 	CXX_STANDARD 17
 	CXX_VISIBILITY_PRESET default)
-target_compile_definitions(datachannel PRIVATE datachannel_EXPORTS)
+target_compile_definitions(datachannel PRIVATE RTC_EXPORTS)
 
 add_library(datachannel-static STATIC EXCLUDE_FROM_ALL
 	${LIBDATACHANNEL_SOURCES}
@@ -242,7 +242,7 @@ add_library(datachannel-static STATIC EXCLUDE_FROM_ALL
 set_target_properties(datachannel-static PROPERTIES
 	VERSION ${PROJECT_VERSION}
 	CXX_STANDARD 17)
-target_compile_definitions(datachannel-static PRIVATE datachannel_EXPORTS)
+target_compile_definitions(datachannel-static PRIVATE RTC_EXPORTS)
 target_compile_definitions(datachannel-static PUBLIC RTC_STATIC)
 
 target_include_directories(datachannel PUBLIC

+ 1 - 1
include/rtc/common.hpp

@@ -23,7 +23,7 @@
 #define RTC_CPP_EXPORT
 #else // dynamic library
 #ifdef _WIN32
-#ifdef datachannel_EXPORTS
+#ifdef RTC_EXPORTS
 #define RTC_CPP_EXPORT __declspec(dllexport) // building the library
 #else
 #define RTC_CPP_EXPORT __declspec(dllimport) // using the library

+ 1 - 1
include/rtc/rtc.h

@@ -27,7 +27,7 @@ extern "C" {
 #define RTC_EXPORT
 #else // dynamic library
 #ifdef _WIN32
-#ifdef datachannel_EXPORTS
+#ifdef RTC_EXPORTS
 #define RTC_EXPORT __declspec(dllexport) // building the library
 #else
 #define RTC_EXPORT __declspec(dllimport) // using the library