1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-05-14 00:59:26 +00:00

log: Use feature test macro before any include

_GNU_SOURCE is needed for strcasestr().

The macro should be defined before including any headers. This broke
recently because glib.h seems to include string.h now.
This commit is contained in:
Evangelos Ribeiro Tzaras 2022-11-18 04:31:13 +01:00
parent 3225be22a3
commit 21ece5dc5f

View file

@ -9,9 +9,10 @@
* SPDX-License-Identifier: GPL-3.0-or-later
*/
#define _GNU_SOURCE
#include "calls-log.h"
#define _GNU_SOURCE
#include <string.h>
#include <glib.h>
#include <stdio.h>