File tree Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -93,19 +93,11 @@ typedef unsigned int uint32_t;
93
93
typedef unsigned long long uint64_t ;
94
94
typedef signed int int32_t ;
95
95
typedef signed long long int64_t ;
96
- #if defined(__GLIBCXX__)
97
- typedef long int ptrdiff_t ;
98
- #else
99
- typedef long long ptrdiff_t ;
100
- #endif
101
- typedef long clock_t ;
102
96
namespace std {
103
97
using ::uint32_t ;
104
98
using ::uint64_t ;
105
99
using ::int32_t ;
106
100
using ::int64_t ;
107
- using ::ptrdiff_t ;
108
- using ::clock_t ;
109
101
}
110
102
#endif // __HIP_NO_STD_DEFS__
111
103
#endif // !defined(__HIPCC_RTC__)
Original file line number Diff line number Diff line change @@ -59,6 +59,18 @@ function(get_hiprtc_macros HIPRTC_DEFINES)
59
59
#define _HIP_BFLOAT16_H_\n\
60
60
#define HIP_INCLUDE_HIP_MATH_FUNCTIONS_H\n\
61
61
#define HIP_INCLUDE_HIP_HIP_VECTOR_TYPES_H\n\
62
+ #if !__HIP_NO_STD_DEFS__\n\
63
+ #if defined(__HIPRTC_PTRDIFF_T_IS_LONG_LONG__) && __HIPRTC_PTRDIFF_T_IS_LONG_LONG__==1\n\
64
+ typedef long long ptrdiff_t;\n\
65
+ #else\n\
66
+ typedef __PTRDIFF_TYPE__ ptrdiff_t;\n\
67
+ #endif\n\
68
+ typedef long clock_t;\n\
69
+ namespace std {\n\
70
+ using ::ptrdiff_t;\n\
71
+ using ::clock_t;\n\
72
+ }\n\
73
+ #endif // __HIP_NO_STD_DEFS__\n\
62
74
#pragma clang diagnostic pop"
63
75
PARENT_SCOPE )
64
76
endfunction (get_hiprtc_macros )
You can’t perform that action at this time.
0 commit comments