| author | |
| committer | |
| log | 9a4a74eb65a681b078163ad6d0522c3c49918e9b |
| tree | d50ff4c0330f76bcf3d18b19ee6008326921c058 |
| parent | 046f7550dfa27a8780a2b6753be39ef4ce08ef50 |
I observed a duplicate symbol linker error; pow was defined both by
mingwex.lib and ucrtbase.dll.2 files changed, 0 insertions(+), 22 deletions(-)
lib/libc/mingw/math/arm-common/pow.c deleted-21| ... | ... | @@ -1,21 +0,0 @@ |
| 1 | /** | |
| 2 | * This file has no copyright assigned and is placed in the Public Domain. | |
| 3 | * This file is part of the mingw-w64 runtime package. | |
| 4 | * No warranty is given; refer to the file DISCLAIMER.PD within this package. | |
| 5 | */ | |
| 6 | ||
| 7 | #include <math.h> | |
| 8 | #include <limits.h> | |
| 9 | ||
| 10 | extern double (* __MINGW_IMP_SYMBOL(pow))(double, double); | |
| 11 | ||
| 12 | double pow(double x, double y) | |
| 13 | { | |
| 14 | if (x == 1.0) | |
| 15 | return 1.0; | |
| 16 | if (y == 0.0) | |
| 17 | return 1.0; | |
| 18 | if (x == -1.0 && isinf(y)) | |
| 19 | return 1.0; | |
| 20 | return __MINGW_IMP_SYMBOL(pow)(x, y); | |
| 21 | } |
src/mingw.zig-1| ... | ... | @@ -954,7 +954,6 @@ const arm_common = [_][]const u8{ |
| 954 | 954 | "math" ++ path.sep_str ++ "arm-common" ++ path.sep_str ++ "logb.c", |
| 955 | 955 | "math" ++ path.sep_str ++ "arm-common" ++ path.sep_str ++ "logbf.c", |
| 956 | 956 | "math" ++ path.sep_str ++ "arm-common" ++ path.sep_str ++ "logbl.c", |
| 957 | "math" ++ path.sep_str ++ "arm-common" ++ path.sep_str ++ "pow.c", | |
| 958 | 957 | "math" ++ path.sep_str ++ "arm-common" ++ path.sep_str ++ "powf.c", |
| 959 | 958 | "math" ++ path.sep_str ++ "arm-common" ++ path.sep_str ++ "powl.c", |
| 960 | 959 | "math" ++ path.sep_str ++ "arm-common" ++ path.sep_str ++ "remainder.c", |