Skip to content

Commit

Permalink
dtls_debug.c: only enable _GNU_SOURCE for MinGW builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianSchueller authored and boaks committed Feb 28, 2024
1 parent 4c39d5c commit 8f28f23
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dtls_debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 8f28f23

Please sign in to comment.