fix(lab04): _GNU_SOURCE must be define in the .c not in the .clangd
This commit is contained in:
@@ -2,7 +2,6 @@ CompileFlags:
|
||||
Add:
|
||||
# Architecture and cross-compilation
|
||||
- "--target=aarch64-linux-gnu"
|
||||
- "-D_GNU_SOURCE"
|
||||
|
||||
# Setup sysroot for buildroot
|
||||
- "--sysroot=/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// #define _GNU_SOURCE
|
||||
#define _GNU_SOURCE
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
Reference in New Issue
Block a user