[MacPorts] #54135: clang-4.0 error building software on 10.6 (or less) due to #include_next <float.h>

MacPorts noreply at macports.org
Fri Jun 30 16:16:32 UTC 2017


#54135: clang-4.0 error building software on 10.6 (or less) due to #include_next
<float.h>
------------------------+---------------------------------------
  Reporter:  kencu      |      Owner:  jeremyhu
      Type:  defect     |     Status:  assigned
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:
Resolution:             |   Keywords:  snowleopard leopard tiger
      Port:  clang-4.0  |
------------------------+---------------------------------------

Comment (by jeremyhu):

 I’m thinking adding something like:

 {{{
 #if defined(__APPLE__) && __has_include(<Availability.h>)
 #include <Availability.h>
 #endif
 }}}

 and then changing the `defined(__APPLE__)` in the condition to
 `(defined(__APPLE__) && (!defined(__MAC_OS_X_VERSION_MAX_ALLOWED) ||
 __MAC_OS_X_VERSION_MAX_ALLOWED >= 101300))`

 If someone could test that, I’d appreciate it.

--
Ticket URL: <https://trac.macports.org/ticket/54135#comment:15>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list