Skip to content

Commit 1ad1e79

Browse files
authored
Catch inadvertent USE_TLS=0 declaration
for #1766
1 parent b402626 commit 1ad1e79

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

driver/others/memory.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
7575

7676
#if defined(USE_TLS) && defined(SMP)
7777
#define COMPILE_TLS
78+
79+
#if USE_TLS != 1
80+
#undef COMPILE_TLS
81+
#endif
82+
7883
#if defined(__GLIBC_PREREQ)
7984
#if !__GLIBC_PREREQ(2,20)
8085
#undef COMPILE_TLS

0 commit comments

Comments
 (0)