bugmake - Bugs: bug #52642, Newer MSVC has <stdint.h>

 
 

bug #52642: Newer MSVC has <stdint.h>

Submitted by:  Simon Richter <geier>
Submitted on:  Mon 11 Dec 2017 07:44:38 PM UTC  
 
Severity:  3 - Normal Item Group:  Build/Install
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open
Component Version:  4.2.1 Operating System:  None
Fixed Release:  None Triage Status:  None

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Thu 14 Dec 2017 01:30:57 PM UTC, comment #1:

OK thanks for the note. I'll have VS 2017 available to test on in a week or two I believe.

Paul D. Smith <psmith>
Project Administrator
Mon 11 Dec 2017 07:44:38 PM UTC, original submission:

When building with ARM64-targetted MSVC from Visual Studio 2017, build fails with

...\stdint.h(45): warning C4114: same type qualifier used more than once
...\stdint.h(45): error C2632: '__int64' followed by 'long' is illegal
...\stdint.h(45): warning C4091: 'typedef ': ignored on left of 'unsigned __int64' when no variable is declared

The problem is in config.h:

#define uintmax_t unsigned long

which is active for Windows because neither <stdint.h> nor <inttypes.h> is expected to exist.

MSVC has has <stdint.h> for a few releases now, so it would probably make sense to assume HAVE_STDINT_H when _MSC_VER >= 1600 (Visual Studio 2010).

Simon Richter <geier>

 

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

Attach Files:
   
   
Comment:
   

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 psmith (Posted a comment)
  • -email is unavailable- added by geier (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can 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):

     

     

    No changes have been made to this item

    Back to the top


    Powered by Savane 3.3