bugThe FreeType Project - Bugs: bug #49790, macros in ftconfig.h not checked...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #49790: macros in ftconfig.h not checked whether defined

Submitter:  None
Submitted:  Wed 07 Dec 2016 11:05:19 AM UTC
   
 
Severity:  3 - Normal Item Group:  Hack required
Status:  Fixed Privacy:  Public
Assigned to:  wl Open/Closed:  Closed
Planned Release:  2.7.1

Thu 22 Dec 2016 09:44:58 AM UTC, comment #1: 

Fixed in git.  Thanks for the report!

Werner LEMBERG <wl>
Group administrator
Wed 07 Dec 2016 11:05:19 AM UTC, original submission:  

With MULTI compiler the following error occurs:

".../ftconfig.h", line 341: error #193-D:
          zero used for undefined preprocessing identifier "__GNUC__"
  #if ( _GNUC_ >= 2                         || \
        ^

".../ftconfig.h", line 343: error #193-D:
          zero used for undefined preprocessing identifier "__SUNPRO_C"
        ( _SUNPRO_C >= 0x5110 && !__STDC_ ) )
          ^

The error seems to be valid as the macros have been used without checking if these are actually defined.

Workaround:
#if ( (defined(_GNUC_) && _GNUC_ >= 2)                         || \
      defined( _IBM__TYPEOF_ )            || \
      (defined(_SUNPRO_C) && __SUNPRO_C >= 0x5110 && !__STDC_ ) )

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by wl (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-12-22 wl StatusNone Fixed
        Assigned toNone wl
        Open/ClosedOpen Closed
        Planned ReleaseNone 2.7.1

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code