Skip to content

Commit 1bd1bb0

Browse files
committed
color_out: fixed headers
1 parent 313264f commit 1bd1bb0

File tree

2 files changed

+7
-12
lines changed

2 files changed

+7
-12
lines changed

src/utils/color_out.cpp

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @author Martin Pulec <pulec@cesnet.cz>
44
*/
55
/*
6-
* Copyright (c) 2018-2023 CESNET, z. s. p. o.
6+
* Copyright (c) 2018-2024 CESNET
77
* All rights reserved.
88
*
99
* Redistribution and use in source and binary forms, with or without
@@ -35,25 +35,21 @@
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"
38+
#ifdef _WIN32
39+
#include <windows.h>
4240
#endif
4341

44-
#include <unistd.h>
45-
4642
#include <cstdarg>
43+
#include <cstdio> // for vsnprintf, fileno, stdout
4744
#include <cstdlib> // for getenv
4845
#include <cstring> // for strcmp, strlen
49-
#include <iostream>
50-
#include <memory>
46+
#include <iterator> // for back_insert_iterator, back_inserter
47+
#include <unistd.h> // for isatty
5148

5249
#include "debug.h"
5350
#include "host.h"
5451
#include "utils/color_out.h"
5552

56-
using std::cout;
5753
using std::string;
5854

5955
static bool color_stdout;

src/utils/color_out.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @author Martin Pulec <pulec@cesnet.cz>
44
*/
55
/*
6-
* Copyright (c) 2018-2022 CESNET, z. s. p. o.
6+
* Copyright (c) 2018-2024 CESNET
77
* All rights reserved.
88
*
99
* Redistribution and use in source and binary forms, with or without
@@ -100,7 +100,6 @@ char *prune_ansi_sequences_inplace_cstr(char *cstr);
100100
#endif
101101

102102
#ifdef __cplusplus
103-
#include <iostream>
104103
#include <sstream>
105104
#include <string>
106105

0 commit comments

Comments
 (0)