From 1583a73c66b0bf7a2271003240ad7ff2e27f19c7 Mon Sep 17 00:00:00 2001 From: Gal Ben David Date: Thu, 6 Aug 2020 14:29:25 +0300 Subject: [PATCH] Adding conditional _DEFAULT_SOURCE definition In order to avoid `_DEFAULT_SOURCE` redefinition warnings, I've wrapped the define statement with an `ifndef`. --- src/static.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/static.c b/src/static.c index bf86166d..0b8caa2c 100644 --- a/src/static.c +++ b/src/static.c @@ -4,7 +4,9 @@ This is free software; you can redistribute it and/or modify it under the terms of the MIT license. A copy of the license can be found in the file "LICENSE" at the root of this distribution. -----------------------------------------------------------------------------*/ +#ifndef _DEFAULT_SOURCE #define _DEFAULT_SOURCE +#endif #include "mimalloc.h" #include "mimalloc-internal.h"