Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix climits dups fix #13

Merged
merged 2 commits into from
Apr 7, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions jitify2.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3172,7 +3172,7 @@ DEFINE_MATH_UNARY_FUNC_WRAPPER(nearbyint)
)");

// TODO: offsetof
JITIFY_DEFINE_C_AND_CXX_HEADERS_EX(stddef, "#include <climits>", R"(
JITIFY_DEFINE_C_AND_CXX_HEADERS_EX(stddef, "#include <cuda/std/climits>", R"(
#if __cplusplus >= 201103L
typedef decltype(nullptr) nullptr_t;
#if defined(_MSC_VER)
Expand Down Expand Up @@ -3200,7 +3200,7 @@ using ::ptrdiff_t;
)");

JITIFY_DEFINE_C_AND_CXX_HEADERS(stdint, R"(
#include <climits>
#include <cuda/std/climits>
#define INT8_MIN SCHAR_MIN
#define INT16_MIN SHRT_MIN
#define INT32_MIN INT_MIN
Expand Down Expand Up @@ -3461,7 +3461,7 @@ struct iterator_traits<T const*> {
static const char* const jitsafe_header_limits = R"(
#pragma once
#include <cfloat>
#include <climits>
#include <cuda/std/climits>
#include <cstdint>
// TODO: epsilon(), infinity(), etc
namespace std {
Expand Down