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 May 13, 2024
1 parent 1ccfd9c commit c6609c8
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 c6609c8

Please sign in to comment.