From: Kevin Day Date: Fri, 2 Aug 2024 02:23:19 +0000 (-0500) Subject: Cleanup: Improve header file define wrappers. X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=220050a5557aab3b8ca075f86682bb3a3304ce4d;p=control Cleanup: Improve header file define wrappers. The ifdef wrappers used for each header file is updated to be more accurate in regards to the directory and file path structure. --- diff --git a/sources/c/program/control/control/main.h b/sources/c/program/control/control/main.h index 18aef0c..32f617b 100644 --- a/sources/c/program/control/control/main.h +++ b/sources/c/program/control/control/main.h @@ -8,8 +8,8 @@ * This file is only ever included by program/control/control/main.c and should not normally be included anywhere else. * Anything that wants to include this should be providing the "control" program functionality in some manner. */ -#ifndef _control_control_h -#define _control_control_h +#ifndef _control_control_main_h +#define _control_control_main_h #ifdef __cplusplus extern "C" { @@ -35,4 +35,4 @@ extern int main(const int argc, const f_string_t *argv, const f_string_t *envp); } // extern "C" #endif -#endif // _control_control_h +#endif // _control_control_main_h diff --git a/sources/c/program/control/main/process.h b/sources/c/program/control/main/process.h index da183d0..4a90ef7 100644 --- a/sources/c/program/control/main/process.h +++ b/sources/c/program/control/main/process.h @@ -9,8 +9,8 @@ * * This is auto-included and should not need to be explicitly included. */ -#ifndef _control_process_h -#define _control_process_h +#ifndef _control_main_process_h +#define _control_main_process_h #ifdef __cplusplus extern "C" { @@ -46,4 +46,4 @@ extern "C" { } // extern "C" #endif -#endif // _control_process_h +#endif // _control_main_process_h diff --git a/sources/c/program/control/main/thread.h b/sources/c/program/control/main/thread.h index d842a8d..8c542d3 100644 --- a/sources/c/program/control/main/thread.h +++ b/sources/c/program/control/main/thread.h @@ -9,8 +9,8 @@ * * This is auto-included and should not need to be explicitly included. */ -#ifndef _control_thread_h -#define _control_thread_h +#ifndef _control_main_thread_h +#define _control_main_thread_h /** * Thread handler for signals/interrupts. @@ -43,4 +43,4 @@ } // extern "C" #endif -#endif // _control_thread_h +#endif // _control_main_thread_h