Skip to content

Commit

Permalink
[core] fix dllexport of srt_rejectreason_str()
Browse files Browse the repository at this point in the history
Add missing SRT_API marker to the function's declaration. Fixes
undefined reference when linking to libsrt on Windows.
  • Loading branch information
xhaakon authored and maxsharabayko committed Jan 11, 2021
1 parent df25ca8 commit 62d5d30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion srtcore/srt.h
Expand Up @@ -980,7 +980,7 @@ SRT_API int srt_getsndbuffer(SRTSOCKET sock, size_t* blocks, size_t* bytes);
SRT_API int srt_getrejectreason(SRTSOCKET sock);
SRT_API int srt_setrejectreason(SRTSOCKET sock, int value);
SRT_API extern const char* const srt_rejectreason_msg [];
const char* srt_rejectreason_str(int id);
SRT_API const char* srt_rejectreason_str(int id);

SRT_API uint32_t srt_getversion(void);

Expand Down

0 comments on commit 62d5d30

Please sign in to comment.