forked from daphne-eu/daphne
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DAPHNE-daphne-eu#830] Fix compilation error in json dependency
The use of EOF in our json dependency makes compilation fail with Clang
- Loading branch information
1 parent
3827c02
commit e3c85a1
Showing
2 changed files
with
22 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- json.hpp.orig 2024-09-24 17:26:47.850173669 +0200 | ||
+++ json.hpp 2024-09-24 17:27:40.874776913 +0200 | ||
@@ -3624,7 +3624,7 @@ | ||
|
||
static constexpr int_type eof() noexcept | ||
{ | ||
- return static_cast<int_type>(EOF); | ||
+ return static_cast<int_type>(std::char_traits<char>::eof()); | ||
} | ||
}; | ||
|
||
@@ -3648,7 +3648,7 @@ | ||
|
||
static constexpr int_type eof() noexcept | ||
{ | ||
- return static_cast<int_type>(EOF); | ||
+ return static_cast<int_type>(std::char_traits<char>::eof()); | ||
} | ||
}; | ||
|