[MacPorts] #62199: mathgl @2.4.4_4: /export.cpp:187:30: error: use of undeclared identifier 'TRUE'

MacPorts noreply at macports.org
Mon Feb 1 19:10:07 UTC 2021


#62199: mathgl @2.4.4_4: /export.cpp:187:30: error: use of undeclared identifier
'TRUE'
---------------------+-------------------------
  Reporter:  kencu   |      Owner:  Schamschula
      Type:  defect  |     Status:  assigned
  Priority:  Normal  |  Milestone:
 Component:  ports   |    Version:
Resolution:          |   Keywords:
      Port:  mathgl  |
---------------------+-------------------------

Comment (by kencu):

 well, it seems to go to trouble to make sure TRUE is undefined, before
 using it later...
 {{{
 #if MGL_HAVE_GIF
 #include <gif_lib.h>
 #undef TRUE
 #undef FALSE
 #endif
 }}}

 That seems weird.

 and at other places, it doesn't like to use {{{TRUE}}} but seems ok to use
 {{{true}}}:

 {{{
 void MGL_EXPORT mgl_write_png(HMGL gr, const char *fname,const char *)
 {
         long w,h;       unsigned char *f=0, **p=0;
         p =_Gr_->GetRGBLines(w,h,f,true);
         if(p)
 }}}

 this all smells like something rather hackish...

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


More information about the macports-tickets mailing list