star-2d

Contour structuring for efficient 2D geometric queries
git clone git://git.meso-star.fr/star-2d.git
Log | Files | Refs | README | LICENSE

commit b0f88a092686acf1051f3c1d7cb6b4814f04f394
parent 80fb92ca5e736ed2cdf33e13a4c74fd4a3177fa6
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Wed, 12 Jul 2023 14:56:21 +0200

Fix compilation warnings in tests using c99 functions

fabsf, expf or nextafterf are defined in the c99 standard, not in c89.
We are fixing these warnings by enabling the POSIX 2001 standard for
these tests.

Diffstat:
Msrc/test_s2d_closest_point.c | 2++
Msrc/test_s2d_raytrace.c | 2++
2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/test_s2d_closest_point.c b/src/test_s2d_closest_point.c @@ -26,6 +26,8 @@ * The fact that you are presently reading this means that you have had * knowledge of the CeCILL license and that you accept its terms. */ +#define _POSIX_C_SOURCE 200112L /* nextafterf, exp2f, fabsf */ + #include "s2d.h" #include "test_s2d_utils.h" diff --git a/src/test_s2d_raytrace.c b/src/test_s2d_raytrace.c @@ -26,6 +26,8 @@ * The fact that you are presently reading this means that you have had * knowledge of the CeCILL license and that you accept its terms. */ +#define _POSIX_C_SOURCE 200112L /* nextafterf, exp2f, fabsf */ + #include "s2d.h" #include "test_s2d_utils.h"