1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-11-20 02:21:43 +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 3ac414fd84
commit 83390e9b04

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>