Ticket #8818: wrap_python.hpp.patch

File wrap_python.hpp.patch, 677 bytes (added by Andrew Ho <helloworld922@…>, 9 years ago)

patch to undef hypot for mingw w64 (caused by python)

  • boost/python/detail/wrap_python.hpp

     
    127127#   define _MSC_VER 900
    128128#  endif
    129129
    130 #  undef hypot // undo the evil #define left by Python.
    131 
    132130# elif defined(__BORLANDC__)
    133131#  undef HAVE_HYPOT
    134132#  define HAVE_HYPOT 1
     
    136134
    137135#endif // _WIN32
    138136
     137#ifdef hypot
     138#  undef hypot // undo the evil #define left by Python.
     139#endif
     140
    139141#if PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION == 2 && PY_MICRO_VERSION < 2
    140142# include <boost/python/detail/python22_fixed.h>
    141143#else