Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
capnproto
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
capnproto
Commits
eb0d2a87
Commit
eb0d2a87
authored
Sep 21, 2017
by
Erik Murphy-Chutorian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid some MSVC workarounds for clang. Fixes capnproto/capnproto#559
parent
43fae7c5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
common.c++
c++/src/kj/common.c++
+1
-1
common.h
c++/src/kj/common.h
+2
-2
No files found.
c++/src/kj/common.c++
View file @
eb0d2a87
...
...
@@ -49,7 +49,7 @@ void unreachable() {
}
// namespace _ (private)
#if _MSC_VER
#if _MSC_VER
&& !__clang__
float
nan
()
{
return
std
::
numeric_limits
<
float
>::
quiet_NaN
();
}
...
...
c++/src/kj/common.h
View file @
eb0d2a87
...
...
@@ -166,7 +166,7 @@ typedef unsigned char byte;
#define KJ_NOINLINE __attribute__((noinline))
#endif
#if defined(_MSC_VER)
#if defined(_MSC_VER)
&& !__clang__
#define KJ_NORETURN(prototype) __declspec(noreturn) prototype
#define KJ_UNUSED
#define KJ_WARN_UNUSED_RESULT
...
...
@@ -635,7 +635,7 @@ struct ThrowOverflow {
void
operator
()()
const
;
};
#if __GNUC__
#if __GNUC__
|| __clang__
inline
constexpr
float
inf
()
{
return
__builtin_huge_valf
();
}
inline
constexpr
float
nan
()
{
return
__builtin_nanf
(
""
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment