From: Kevin Day Date: Mon, 12 Dec 2022 05:16:24 +0000 (-0600) Subject: Bugfix: _GNU_SOURCE should be wrapped in an ifndef. X-Git-Tag: 0.6.2~15 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=7c59c2dd782d00b9d3f68da2513c15469ad0eb08;p=fll Bugfix: _GNU_SOURCE should be wrapped in an ifndef. --- diff --git a/level_0/f_execute/c/execute.h b/level_0/f_execute/c/execute.h index a845324..72c0fb9 100644 --- a/level_0/f_execute/c/execute.h +++ b/level_0/f_execute/c/execute.h @@ -11,7 +11,9 @@ #define _F_execute_h // Include pre-requirements. -#define _GNU_SOURCE +#ifndef _GNU_SOURCE + #define _GNU_SOURCE +#endif // _GNU_SOURCE // Libc includes. #include diff --git a/level_0/f_limit/c/limit.h b/level_0/f_limit/c/limit.h index dc02b69..22f14f9 100644 --- a/level_0/f_limit/c/limit.h +++ b/level_0/f_limit/c/limit.h @@ -11,7 +11,9 @@ #define _F_limit_h // Include pre-requirements. -#define _GNU_SOURCE +#ifndef _GNU_SOURCE + #define _GNU_SOURCE +#endif // _GNU_SOURCE // Libc includes. #include diff --git a/level_0/f_thread/c/thread.h b/level_0/f_thread/c/thread.h index f39bd3a..01f9303 100644 --- a/level_0/f_thread/c/thread.h +++ b/level_0/f_thread/c/thread.h @@ -11,7 +11,9 @@ #define _F_thread_h // Include pre-requirements. -#define _GNU_SOURCE +#ifndef _GNU_SOURCE + #define _GNU_SOURCE +#endif // _GNU_SOURCE // Libc includes. #include diff --git a/level_1/fl_control_group/c/control_group.h b/level_1/fl_control_group/c/control_group.h index 8569ed2..2b343b2 100644 --- a/level_1/fl_control_group/c/control_group.h +++ b/level_1/fl_control_group/c/control_group.h @@ -17,7 +17,9 @@ #define _FL_control_group_h // Include pre-requirements. -#define _GNU_SOURCE +#ifndef _GNU_SOURCE + #define _GNU_SOURCE +#endif // _GNU_SOURCE // Libc includes. #include diff --git a/level_1/fl_execute/c/execute.h b/level_1/fl_execute/c/execute.h index 4446404..097f307 100644 --- a/level_1/fl_execute/c/execute.h +++ b/level_1/fl_execute/c/execute.h @@ -15,7 +15,9 @@ #define _FL_execute_h // Include pre-requirements. -#define _GNU_SOURCE +#ifndef _GNU_SOURCE + #define _GNU_SOURCE +#endif // _GNU_SOURCE // Libc includes. #include diff --git a/level_2/fll_execute/c/execute.h b/level_2/fll_execute/c/execute.h index 0fb052f..261bf29 100644 --- a/level_2/fll_execute/c/execute.h +++ b/level_2/fll_execute/c/execute.h @@ -14,7 +14,9 @@ #define _FLL_execute_h // Include pre-requirements. -#define _GNU_SOURCE +#ifndef _GNU_SOURCE + #define _GNU_SOURCE +#endif // _GNU_SOURCE // Libc includes. #include diff --git a/level_3/controller/c/controller.h b/level_3/controller/c/controller.h index d4bc62a..e30842a 100644 --- a/level_3/controller/c/controller.h +++ b/level_3/controller/c/controller.h @@ -16,7 +16,9 @@ #define _controller_h // Include pre-requirements. -#define _GNU_SOURCE +#ifndef _GNU_SOURCE + #define _GNU_SOURCE +#endif // _GNU_SOURCE // Libc includes. #include