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