diff --git a/trunk/src/app/srs_app_config.cpp b/trunk/src/app/srs_app_config.cpp index d1c53e7d7..1452666dd 100644 --- a/trunk/src/app/srs_app_config.cpp +++ b/trunk/src/app/srs_app_config.cpp @@ -57,14 +57,14 @@ int64_t FILE_SIZE(int fd) } // '\n' -#define LF (char)0x0a +#define __LF (char)0x0a // '\r' -#define CR (char)0x0d +#define __CR (char)0x0d bool is_common_space(char ch) { - return (ch == ' ' || ch == '\t' || ch == CR || ch == LF); + return (ch == ' ' || ch == '\t' || ch == __CR || ch == __LF); } SrsConfDirective::SrsConfDirective() @@ -242,7 +242,7 @@ int SrsConfDirective::read_token(_srs_internal::SrsConfigBuffer* buffer, vector< char ch = *buffer->pos++; - if (ch == LF) { + if (ch == __LF) { buffer->line++; sharp_comment = false; }