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:
@@ -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>
|
||||
|
Reference in New Issue
Block a user