Includes <cmath> or <math.h> by __cplusplus in hip_complex.h

[ROCm/clr commit: 5d0d2ea455]
이 커밋은 다음에 포함됨:
Yaxun (Sam) Liu가 2018-06-17 20:20:32 -04:00를 커밋했습니다
1 부모 92959fa686
커밋 2dfbd89f5c
1 파일이 변경됨
+8
+8
파일 보기
@@ -24,7 +24,15 @@ THE SOFTWARE.
#define HIP_INCLUDE_HIP_HCC_DETAIL_HIP_COMPLEX_H
#include "hip/hcc_detail/hip_vector_types.h"
// TODO: Clang has a bug which allows device functions to call std functions
// when std functions are introduced into default namespace by using statement.
// math.h may be included after this bug is fixed.
#if __cplusplus
#include <cmath>
#else
#include "math.h"
#endif
#if __cplusplus
#define COMPLEX_ADD_OP_OVERLOAD(type) \