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:
parent
3ac414fd84
commit
83390e9b04
1 changed files with 2 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue