Skip to content

Commit

Permalink
ghci: fix isMinTTY.h casing for Windows targets
Browse files Browse the repository at this point in the history
This commit fixes isMinTTY.h casing in isMinTTY.c that's compiled for
Windows targets. While this looks harmless given Windows filesystems
are case-insensitive by default, it does cause a compilation warning
with recent versions of clang, so we might as well fix the casing:

```
driver\ghci\isMinTTY.c:10:10: error:
     warning: non-portable path to file '"isMinTTY.h"'; specified path differs in case from file name on disk [-Wnonportable-include-path]
   |
10 | #include "isMINTTY.h"
   |          ^

 #include "isMINTTY.h"
         ^~~~~~~~~~~~
         "isMinTTY.h"
1 warning generated.
```
  • Loading branch information
TerrorJack authored and Marge Bot committed Aug 18, 2024
1 parent 8848884 commit 3a14531
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion driver/utils/isMinTTY.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#include <stdbool.h>
#include <windows.h>
#include "isMINTTY.h"
#include "isMinTTY.h"

bool isMinTTY() {
const HANDLE h = GetStdHandle(STD_ERROR_HANDLE);
Expand Down

0 comments on commit 3a14531

Please sign in to comment.