1
0

fix(lab04): _GNU_SOURCE must be define in the .c not in the .clangd

This commit is contained in:
2026-05-09 15:21:28 +02:00
parent a09c855503
commit f554918ec4
2 changed files with 1 additions and 2 deletions

View File

@@ -2,7 +2,6 @@ CompileFlags:
Add: Add:
# Architecture and cross-compilation # Architecture and cross-compilation
- "--target=aarch64-linux-gnu" - "--target=aarch64-linux-gnu"
- "-D_GNU_SOURCE"
# Setup sysroot for buildroot # Setup sysroot for buildroot
- "--sysroot=/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot" - "--sysroot=/buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot"

View File

@@ -1,4 +1,4 @@
// #define _GNU_SOURCE #define _GNU_SOURCE
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>