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

 
 

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

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

Add a New Comment Rich Markup
   

Sat 04 Aug 2018 09:06:42 PM UTC, comment #2: 

The current version from Git will compile on Windows using MSVC 2017.  Thanks.

Paul D. Smith <psmith>
Group administrator
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>
Group 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)
  •  

    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.

    Only logged-in users can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-08-04 psmith StatusNone Fixed
        Assigned toNone psmith
        Open/ClosedOpen Closed
        Operating SystemNone MS Windows
        Fixed ReleaseNone 4.3

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code