mirror of
https://github.com/glfw/glfw.git
synced 2026-11-18 04:44:54 +00:00
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:
+3
-1
@@ -24,7 +24,9 @@
|
||||
//
|
||||
//========================================================================
|
||||
|
||||
#define _GNU_SOURCE
|
||||
#if !defined(_GNU_SOURCE)
|
||||
#define _GNU_SOURCE
|
||||
#endif
|
||||
|
||||
#include "internal.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user