build fix for some 3rd party oses.
This commit is contained in:
committed by
David Chisnall
parent
faa80037bb
commit
f731bc169b
@@ -10,7 +10,8 @@
|
||||
using namespace snmalloc;
|
||||
|
||||
// glibc lacks snprintf_l
|
||||
#ifdef __linux__
|
||||
#if defined(__linux__) || defined(__OpenBSD__) || defined(__DragonFly__) || \
|
||||
defined(__HAIKU__)
|
||||
# define snprintf_l(buf, size, loc, msg, ...) \
|
||||
snprintf(buf, size, msg, __VA_ARGS__)
|
||||
// Windows has it with an underscore prefix
|
||||
|
||||
Reference in New Issue
Block a user