Skip to content

Commit 393fd8a

Browse files
committed
utils/local_buard,resource_manager: IWYU
1 parent 31ea569 commit 393fd8a

File tree

3 files changed

+5
-21
lines changed

3 files changed

+5
-21
lines changed

src/utils/lock_guard.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,6 @@
55
#ifndef LOCK_GUARD_H_
66
#define LOCK_GUARD_H_
77

8-
#ifdef HAVE_CONFIG_H
9-
#include "config.h"
10-
#include "config_unix.h"
11-
#include "config_win32.h"
12-
#endif // HAVE_CONFIG_H
13-
148
#include <pthread.h>
159

1610
namespace ultragrid {

src/utils/resource_manager.cpp

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,23 +40,17 @@
4040
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
4141
*/
4242

43-
#ifdef HAVE_CONFIG_H
44-
#include "config.h"
45-
#include "config_unix.h"
46-
#include "config_win32.h"
47-
#endif // HAVE_CONFIG_H
48-
4943
#include "resource_manager.h"
5044

51-
#include "utils/lock_guard.h"
52-
5345
#include <algorithm>
46+
#include <cstdlib> // for NULL, calloc, free
5447
#include <map>
5548
#include <stdexcept>
5649
#include <string>
57-
#include <typeinfo>
5850
#include <utility>
5951

52+
#include "utils/lock_guard.h"
53+
6054
#define TYPE_LOCK 0
6155
#define TYPE_SHM 1
6256
#define TYPE_SINGLETON 2

src/utils/resource_manager.h

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,11 @@
3535
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3636
*/
3737

38-
#ifdef HAVE_CONFIG_H
39-
#include "config.h"
40-
#include "config_unix.h"
41-
#include "config_win32.h"
42-
#endif // HAVE_CONFIG_H
43-
4438
#ifndef RESOURCE_MANAGER_H_
4539
#define RESOURCE_MANAGER_H_
4640

41+
#include <pthread.h>
42+
4743
#ifdef __cplusplus
4844
extern "C" {
4945
#endif

0 commit comments

Comments
 (0)