Skip to content

Commit 39751e3

Browse files
committed
Config: enable use of thread_local (with XCode 8 is out of the picture)
1 parent 0895705 commit 39751e3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎core/src/ZXConfig.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// in e.g. the ReedSolomonDecoder. It is disabled by default. It can be enabled by modifying the following define.
1010
// Note: The Apple clang compiler until XCode 8 does not support c++11's thread_local.
1111
// The alternative 'static' makes the code thread unsafe.
12-
#define ZX_THREAD_LOCAL // '' (nothing), 'thread_local' or 'static'
12+
#define ZX_THREAD_LOCAL thread_local // '' (nothing), 'thread_local' or 'static'
1313

1414
// The Galoir Field abstractions used in Reed-Solomon error correction code can use more memory to eliminate a modulo
1515
// operation. This improves performance but might not be the best option if RAM is scarce. The effect is a few kB big.

0 commit comments

Comments
 (0)