From 393fd8a415e45c8e0882e41d2b416329115702ac Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Tue, 25 Mar 2025 13:13:30 +0100 Subject: [PATCH] utils/local_buard,resource_manager: IWYU --- src/utils/lock_guard.h | 6 ------ src/utils/resource_manager.cpp | 12 +++--------- src/utils/resource_manager.h | 8 ++------ 3 files changed, 5 insertions(+), 21 deletions(-) diff --git a/src/utils/lock_guard.h b/src/utils/lock_guard.h index 5fb239b0a..cfa2db3f2 100644 --- a/src/utils/lock_guard.h +++ b/src/utils/lock_guard.h @@ -5,12 +5,6 @@ #ifndef LOCK_GUARD_H_ #define LOCK_GUARD_H_ -#ifdef HAVE_CONFIG_H -#include "config.h" -#include "config_unix.h" -#include "config_win32.h" -#endif // HAVE_CONFIG_H - #include namespace ultragrid { diff --git a/src/utils/resource_manager.cpp b/src/utils/resource_manager.cpp index f85ea5a1a..c1a3ce6b9 100644 --- a/src/utils/resource_manager.cpp +++ b/src/utils/resource_manager.cpp @@ -40,23 +40,17 @@ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H -#include "config.h" -#include "config_unix.h" -#include "config_win32.h" -#endif // HAVE_CONFIG_H - #include "resource_manager.h" -#include "utils/lock_guard.h" - #include +#include // for NULL, calloc, free #include #include #include -#include #include +#include "utils/lock_guard.h" + #define TYPE_LOCK 0 #define TYPE_SHM 1 #define TYPE_SINGLETON 2 diff --git a/src/utils/resource_manager.h b/src/utils/resource_manager.h index 81bb1a998..fe3e13c76 100644 --- a/src/utils/resource_manager.h +++ b/src/utils/resource_manager.h @@ -35,15 +35,11 @@ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H -#include "config.h" -#include "config_unix.h" -#include "config_win32.h" -#endif // HAVE_CONFIG_H - #ifndef RESOURCE_MANAGER_H_ #define RESOURCE_MANAGER_H_ +#include + #ifdef __cplusplus extern "C" { #endif