mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-06 12:33:44 +02:00
Old-school GCC build fix -- make sure __GCC__ is defined
This commit is contained in:
parent
93f9b4392d
commit
7d4b6767eb
1 changed files with 7 additions and 0 deletions
|
@ -41,6 +41,13 @@
|
||||||
// Also makes sure __BYTE_ORDER is defined reasonably.
|
// Also makes sure __BYTE_ORDER is defined reasonably.
|
||||||
//
|
//
|
||||||
|
|
||||||
|
// Hack: make sure __GCC__ is defined on old GCC compilers
|
||||||
|
#ifndef __GCC__
|
||||||
|
#if defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_1) || defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_2) || defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4)
|
||||||
|
#define __GCC__
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(__linux__) || defined(linux) || defined(__LINUX__) || defined(__linux)
|
#if defined(__linux__) || defined(linux) || defined(__LINUX__) || defined(__linux)
|
||||||
#ifndef __LINUX__
|
#ifndef __LINUX__
|
||||||
#define __LINUX__
|
#define __LINUX__
|
||||||
|
|
Loading…
Add table
Reference in a new issue