Ticket #62445: patch-compiler.h.diff

File patch-compiler.h.diff, 809 bytes (added by bal-agates, 3 years ago)

patch file for levmar compiler.h changing finite() to isfinite().

  • src/foreign/levmar/compiler.h

    old new  
    2020#ifndef _COMPILER_H_
    2121#define _COMPILER_H_
    2222
     23#include <math.h>
     24
    2325/* note: intel's icc defines both __ICC & __INTEL_COMPILER.
    2426 * Also, some compilers other than gcc define __GNUC__,
    2527 * therefore gcc should be checked last
     
    3335#ifdef _MSC_VER
    3436#define LM_FINITE _finite // MSVC
    3537#elif defined(__ICC) || defined(__INTEL_COMPILER) || defined(__GNUC__)
    36 #define LM_FINITE finite // ICC, GCC
     38#define LM_FINITE isfinite // ICC, GCC
    3739#else
    38 #define LM_FINITE finite // other than MSVC, ICC, GCC, let's hope this will work
     40#define LM_FINITE isfinite // other than MSVC, ICC, GCC, let's hope this will work
    3941#endif
    4042
    4143#ifdef _MSC_VER