build: don't rely on implicit GNU extensions

Currently libwayland assumes GNU extensions will be available, but
doesn't define the C standard to use. Instead, let's unconditionally
enable POSIX extensions, and enable GNU extensions on a case-by-case
basis as needed.

Signed-off-by: Simon Ser <contact@emersion.fr>
This commit is contained in:
Simon Ser 2022-01-10 14:51:55 +01:00
parent 65616e946b
commit 0d314c4a04
5 changed files with 12 additions and 2 deletions

View file

@ -23,6 +23,7 @@
* SOFTWARE.
*/
#define _GNU_SOURCE
#include "xcursor.h"
#include <stdio.h>
#include <stdlib.h>