mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
refine the macro, use int as version type. 2.0.8
This commit is contained in:
parent
8521762cb3
commit
fa53250202
4 changed files with 58 additions and 40 deletions
|
@ -491,17 +491,17 @@ int srs_write_packet(srs_rtmp_t rtmp, int type, u_int32_t timestamp, char* data,
|
|||
|
||||
int srs_version_major()
|
||||
{
|
||||
return ::atoi(VERSION_MAJOR);
|
||||
return VERSION_MAJOR;
|
||||
}
|
||||
|
||||
int srs_version_minor()
|
||||
{
|
||||
return ::atoi(VERSION_MINOR);
|
||||
return VERSION_MINOR;
|
||||
}
|
||||
|
||||
int srs_version_revision()
|
||||
{
|
||||
return ::atoi(VERSION_REVISION);
|
||||
return VERSION_REVISION;
|
||||
}
|
||||
|
||||
int64_t srs_get_time_ms()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue