Skip to content

Commit 1de10f9

Browse files
authored
Add files via upload
Fix issue opencv#8280: "fastmath.h related compile errors with Embarcadero C++ Builder 10.1"
1 parent 7878404 commit 1de10f9

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

modules/core/include/opencv2/core/fast_math.hpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,14 @@
5454
* fast math *
5555
\****************************************************************************************/
5656

57-
#if defined __BORLANDC__
58-
# include <fastmath.h>
59-
#elif defined __cplusplus
57+
#ifdef __cplusplus
6058
# include <cmath>
6159
#else
62-
# include <math.h>
60+
# ifdef __BORLANDC__
61+
# include <fastmath.h>
62+
# else
63+
# include <math.h>
64+
# endif
6365
#endif
6466

6567
#ifdef HAVE_TEGRA_OPTIMIZATION

0 commit comments

Comments
 (0)