From 59261602891d49f096f98e1a394026e90bac0fc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=81=93=E7=94=AB?= Date: Mon, 1 Apr 2024 18:34:09 +0800 Subject: [PATCH] =?UTF-8?q?add:=20=E8=A1=A5=E5=85=85MediaSource=20C=20API?= =?UTF-8?q?=20=5Fstrdup=20in=20linux?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/source/mk_events_objects.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/source/mk_events_objects.cpp b/api/source/mk_events_objects.cpp index 758e38a3..bcead9ed 100644 --- a/api/source/mk_events_objects.cpp +++ b/api/source/mk_events_objects.cpp @@ -25,6 +25,10 @@ using namespace toolkit; using namespace mediakit; +#ifndef _WIN32 +#define _strdup strdup +#endif + ///////////////////////////////////////////RecordInfo///////////////////////////////////////////// API_EXPORT uint64_t API_CALL mk_mp4_info_get_start_time(const mk_mp4_info ctx){ assert(ctx);