mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
for #354, remove the double underscore of macro.
This commit is contained in:
parent
014993ad1e
commit
c6817cc422
18 changed files with 493 additions and 493 deletions
|
@ -52,14 +52,14 @@ using namespace _srs_internal;
|
|||
#define SRS_WIKI_URL_LOG "https://github.com/winlinvip/simple-rtmp-server/wiki/v1_CN_SrsLog"
|
||||
|
||||
// '\n'
|
||||
#define __LF (char)0x0a
|
||||
#define SRS_LF (char)0x0a
|
||||
|
||||
// '\r'
|
||||
#define __CR (char)0x0d
|
||||
#define SRS_CR (char)0x0d
|
||||
|
||||
bool is_common_space(char ch)
|
||||
{
|
||||
return (ch == ' ' || ch == '\t' || ch == __CR || ch == __LF);
|
||||
return (ch == ' ' || ch == '\t' || ch == SRS_CR || ch == SRS_LF);
|
||||
}
|
||||
|
||||
SrsConfDirective::SrsConfDirective()
|
||||
|
@ -242,7 +242,7 @@ int SrsConfDirective::read_token(SrsConfigBuffer* buffer, vector<string>& args,
|
|||
|
||||
char ch = *buffer->pos++;
|
||||
|
||||
if (ch == __LF) {
|
||||
if (ch == SRS_LF) {
|
||||
buffer->line++;
|
||||
sharp_comment = false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue