Skip to content

Commit e3ca941

Browse files
committed
Change to use HAVE_UNISTDH instead of CMAPLE_HAS_UNISTDH to avoid compilation errors when building with IQTREE
1 parent 3946f47 commit e3ca941

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ check_function_exists (strndup HAVE_STRNDUP)
107107
check_function_exists (strtok_r HAVE_STRTOK_R)
108108
## find optional headers
109109
include (CheckIncludeFile)
110-
CHECK_INCLUDE_FILE("unistd.h" CMAPLE_HAS_UNISTDH)
110+
CHECK_INCLUDE_FILE("unistd.h" HAVE_UNISTDH)
111111

112112

113113

cmaple_config.h.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#cmakedefine HAVE_STRNDUP
1616
#cmakedefine HAVE_STRTOK_R
1717

18-
#cmakedefine CMAPLE_HAS_UNISTDH
18+
#cmakedefine HAVE_UNISTDH
1919

2020
/* does the platform provide backtrace functions? */
2121
#cmakedefine Backtrace_FOUND

utils/operatingsystem.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#include "operatingsystem.h"
99
#include <sstream>
1010
#include <string>
11-
#if defined(CMAPLE_HAS_UNISTDH)
11+
#if defined(HAVE_UNISTDH)
1212
#include <unistd.h> //for isatty
1313
#else
1414
#include <io.h> //for _isatty
@@ -32,7 +32,7 @@ auto getOSName() -> std::string {
3232
}
3333

3434
auto isStandardOutputATerminal() -> bool {
35-
#if defined(CMAPLE_HAS_UNISTDH)
35+
#if defined(HAVE_UNISTDH)
3636
return isatty(fileno(stdout));
3737
#else
3838
return _isatty(fileno(stdout));

0 commit comments

Comments
 (0)