abolz / Drachennest

Different algorithms for converting binary to decimal floating-point numbers
Boost Software License 1.0
116 stars 7 forks source link

bench: fix conflicts with symbol `random` on osx #9

Open belm0 opened 2 years ago

belm0 commented 2 years ago

Fixes #8

Apple clang version 12.0.0 (clang-1200.0.32.29)
Target: x86_64-apple-darwin19.6.0
Drachennest/bench/bench_strtod.cc:144:22: error: redefinition of
      'random' as different kind of symbol
static JenkinsRandom random;
                     ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/usr/include/stdlib.h:228:7: note:
      previous definition is here
long     random(void) __swift_unavailable("Use arc4random instead.");
         ^