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

 
 

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

Submitted by:  None
Submitted on:  Wed 07 Dec 2016 11:05:19 AM UTC  
 
Severity: 3 - NormalItem Group: Hack required
Status: FixedPrivacy: Public
Assigned to: Werner LEMBERG <wl>Open/Closed: Closed
Planned Release: 2.7.1

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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

Fixed in git. Thanks for the report!

Werner LEMBERG <wl>
Project AdministratorIn charge of this item.
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.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 22 Dec 2016 09:44:58 AM UTCwlStatusNone=>Fixed
      Assigned toNone=>wl
      Open/ClosedOpen=>Closed
      Planned ReleaseNone=>2.7.1

    Back to the top


    Powered by Savane 3.1-cleanup1