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

MacPorts noreply at macports.org
Mon Dec 30 04:29:43 UTC 2024


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

Comment (by ryandesign):

 Shouldn't it be:
 {{{
 #ifndef __has_feature
 #define GPR_PTHREAD_TLS 1
 #elif !__has_feature(cxx_thread_local)
 #define GPR_PTHREAD_TLS 1
 #endif
 }}}
 This is not exactly equivalent to the original code. The original code
 would assume TLS was supported if `__has_feature` did not exist, which
 feels wrong to me. Then again maybe g++ supports TLS and does not have
 `__has_feature`. If we want to be exactly equivalent to the original code,
 but without the oops, then it would be:
 {{{
 #ifdef __has_feature
 #if !__has_feature(cxx_thread_local)
 #define GPR_PTHREAD_TLS 1
 #endif
 #endif
 }}}

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


More information about the macports-tickets mailing list