[MacPorts] #65525: grpc fails on 10.6.8: error: missing binary operator before token "(" (was: gprc fails on 10.6.8: error: missing binary operator before token "(")

MacPorts noreply at macports.org
Sat Jul 23 10:04:12 UTC 2022


#65525: grpc fails on 10.6.8: error: missing binary operator before token "("
---------------------------+--------------------
  Reporter:  barracuda156  |      Owner:  (none)
      Type:  defect        |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.7.2
Resolution:                |   Keywords:
      Port:  grpc          |
---------------------------+--------------------
Changes (by jmroot):

 * keywords:  snowleopard =>
 * port:  gprc => grpc


Comment:

 This is a genuine bug and is still present in upstream master. You can't
 use `__has_feature` in the same expression that checks whether it's
 defined. (The check for `__has_include` in the same file is done
 correctly.)

 The code in question should look like this:
 {{{
 #if defined(__has_feature)
 #if __has_feature(cxx_thread_local)
 #define GPR_PTHREAD_TLS 1
 #endif
 #endif
 }}}

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


More information about the macports-tickets mailing list