dtls_debug.c: only enable _GNU_SOURCE for MinGW builds.

This commit is contained in:
Sebastian Schüller 2024-02-15 15:30:16 +01:00 committed by Achim Kraus
parent 1ccfd9c0a2
commit c6609c83e3

View File

@ -17,9 +17,11 @@
#include "tinydtls.h"
#ifdef IS_WINDOWS
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* _GNU_SOURCE */
#endif /* IS_WINDOWS */
#if defined(HAVE_ASSERT_H) && !defined(assert)
#include <assert.h>