danfis / libccd

Library for collision detection between two convex shapes
Other
478 stars 108 forks source link

fminf seems not to exist on windows/Visual C++ #1

Closed afabri closed 11 years ago

afabri commented 11 years ago

On Windows fminf does not exist.

#ifdef WIN32 /* HACK Windows math.h may not define fminf so pretend it does */
#define CCD_FMIN(a,b) (a) < (b) ? (a) : (b)
#else
# define CCD_FMIN(x, y) (fminf((x), (y))) /*!< minimum of two floats */
#endif
danfis commented 11 years ago

Fixed in https://github.com/danfis/libccd/commit/1074941df3a2e3215ef735c6c2d15c5466501841