From 6730f08f454e16cefba76679534e6cb0cb2d31d7 Mon Sep 17 00:00:00 2001 From: winlin Date: Sun, 5 May 2019 07:44:39 +0800 Subject: [PATCH] Refine core.hpp --- trunk/src/core/srs_core.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/trunk/src/core/srs_core.hpp b/trunk/src/core/srs_core.hpp index 2da67cc29..a59348f40 100644 --- a/trunk/src/core/srs_core.hpp +++ b/trunk/src/core/srs_core.hpp @@ -32,6 +32,11 @@ // The macros generated by configure script. #include +// To convert macro values to string. +// @see https://gcc.gnu.org/onlinedocs/cpp/Stringification.html#Stringification +#define SRS_INTERNAL_STR(v) #v +#define SRS_XSTR(v) SRS_INTERNAL_STR(v) + // The project informations, may sent to client in HTTP header or RTMP metadata. #define RTMP_SIG_SRS_KEY "SRS" #define RTMP_SIG_SRS_CODE "OuXuli" @@ -44,11 +49,6 @@ #define VERSION_STABLE 2 #define VERSION_STABLE_BRANCH SRS_XSTR(VERSION_STABLE)".0release" -// To convert macro values to string. -// @see https://gcc.gnu.org/onlinedocs/cpp/Stringification.html#Stringification -#define SRS_XSTR(v) SRS_INTERNAL_STR(v) -#define SRS_INTERNAL_STR(v) #v - // For 32bit os, 2G big file limit for unistd io, // ie. read/write/lseek to use 64bits size for huge file. #ifndef _FILE_OFFSET_BITS