mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
merge from srs2 to check cpus.
This commit is contained in:
commit
4e88262512
7 changed files with 63 additions and 48 deletions
|
@ -119,5 +119,17 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||
className(const className&); \
|
||||
className& operator= (const className&)
|
||||
|
||||
/**
|
||||
* important check for st(state-threads),
|
||||
* only support the following cpus:
|
||||
* 1. i386/amd64/x86_64
|
||||
* 2. arm, glibc <= 2.15
|
||||
*/
|
||||
#if !defined(__amd64__) && !defined(__x86_64__) && !defined(__i386__) && !defined(__arm__)
|
||||
#error "only support i386/amd64/x86_64/arm cpu"
|
||||
#endif
|
||||
#if defined(__arm__) && __GLIBC__ != 2 || __GLIBC_MINOR__ > 15
|
||||
#error "for arm, only support glibc <= 2.15"
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue