Wayland: Conditionally define _GNU_SOURCE

This fixes a re-definition warning for the _GNU_SOURCE macro.

Edited by elmindreda: code formatting, author credit

Related to go-gl/glfw#359
Fixes #2833
This commit is contained in:
Tomáš Mráz
2026-03-03 16:10:20 +01:00
committed by Camilla Löwy
parent 567b1ec244
commit de0c378aa2
2 changed files with 4 additions and 1 deletions
+1
View File
@@ -183,6 +183,7 @@ video tutorials.
- Jon Morton - Jon Morton
- Pierre Moulon - Pierre Moulon
- Martins Mozeiko - Martins Mozeiko
- Tomáš Mráz
- Pascal Muetschard - Pascal Muetschard
- James Murphy - James Murphy
- Julian Møller - Julian Møller
+3 -1
View File
@@ -24,7 +24,9 @@
// //
//======================================================================== //========================================================================
#define _GNU_SOURCE #if !defined(_GNU_SOURCE)
#define _GNU_SOURCE
#endif
#include "internal.h" #include "internal.h"