Skip to content

Commit f590394

Browse files
gitplccalandefreitas
authored andcommitted
Fix compiling on Cygwin
Signed-off-by: Pedro Luis Castedo Cepeda <[email protected]>
1 parent c088749 commit f590394

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

source/matplot/backend/gnuplot.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ namespace matplot::backend {
3737

3838
gnuplot::gnuplot() {
3939
// 1st option: terminal in GNUTERM environment variable
40-
#if defined(_MSC_VER) || \
41-
defined(__CYGWIN__)
40+
#if defined(_MSC_VER)
4241
char *environment_terminal;
4342
size_t len;
4443
errno_t err = _dupenv_s(&environment_terminal, &len, "GNUTERM");
@@ -51,7 +50,7 @@ namespace matplot::backend {
5150
if (terminal_is_available(environment_terminal)) {
5251
terminal_ = environment_terminal;
5352
}
54-
#if defined(_WIN32) || defined(_WIN64) || defined(__MINGW32__) || defined(__CYGWIN__)
53+
#if defined(_WIN32) || defined(_WIN64) || defined(__MINGW32__)
5554
} else if (terminal_is_available("wxt")) {
5655
// 2nd option: wxt on windows, even if not default
5756
terminal_ = "wxt";
@@ -436,4 +435,4 @@ namespace matplot::backend {
436435
std::end(blacklist);
437436
}
438437

439-
} // namespace matplot::backend
438+
} // namespace matplot::backend

0 commit comments

Comments
 (0)