Describe the bug
The patch() functions defined in the multiprecision source files when multiprecision is NOT enabled should be removed/fixed
To Reproduce
Steps to reproduce the behavior:
Include LibRapid without LIBRAPID_USE_MULTIPREC
Minimal Reproducable Example
#include <librapid>
int main() {
fmt::print("Hello, World\n");
return 0;
}
Expected behavior
No warnings
Stack Traces
multiprecModAbs.cpp.obj : warning LNK4006: "int __cdecl patch(int)" (?patch@@YAHH@Z) already defined in multiprecTrig.cpp.obj; second definition ignored
multiprecHypot.cpp.obj : warning LNK4006: "int __cdecl patch(int)" (?patch@@YAHH@Z) already defined in multiprecTrig.cpp.obj; second definition ignored
multiprecFloorCeil.cpp.obj : warning LNK4006: "int __cdecl patch(int)" (?patch@@YAHH@Z) already defined in multiprecTrig.cpp.obj; second definition ignored
multiprecExpLogPow.cpp.obj : warning LNK4006: "int __cdecl patch(int)" (?patch@@YAHH@Z) already defined in multiprecTrig.cpp.obj; second definition ignored
multiprecCasting.cpp.obj : warning LNK4006: "int __cdecl patch(int)" (?patch@@YAHH@Z) already defined in multiprecTrig.cpp.obj; second definition ignored
Describe the bug The
patch()
functions defined in the multiprecision source files when multiprecision is NOT enabled should be removed/fixedTo Reproduce Steps to reproduce the behavior:
LIBRAPID_USE_MULTIPREC
Minimal Reproducable Example
Expected behavior No warnings
Stack Traces