VirtualBox

Changeset 2766 in kBuild for trunk/src


Ignore:
Timestamp:
Jan 30, 2015 3:32:38 AM (10 years ago)
Author:
bird
Message:

MSC seems to have stdint.h in more recent editions. kewl.

Location:
trunk/src/kmk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/config.h.win

    r2759 r2766  
    222222
    223223/* Define to 1 if you have the <stdint.h> header file. */
    224 /*#define HAVE_STDINT_H 1*/
     224#if _MSC_VER >= 1600
     225# define HAVE_STDINT_H 1
     226#endif
    225227
    226228/* Define to 1 if you have the <stdlib.h> header file. */
     
    447449
    448450/* Define uintmax_t if not defined in <stdint.h> or <inttypes.h>. */
    449 #if 0
    450 #define uintmax_t unsigned long
    451 #else
    452 #define uintmax_t unsigned __int64
     451#if _MSC_VER < 1600
     452# if 0
     453#  define uintmax_t unsigned long
     454# else
     455#  define uintmax_t unsigned __int64
     456# endif
    453457#endif
    454458
  • trunk/src/kmk/kmkbuiltin/mscfakes.h

    r2759 r2766  
    9393typedef unsigned short u_short;
    9494
     95#if _MSC_VER >= 1600
     96# include <stdint.h>
     97#else
     98typedef unsigned char  uint8_t;
     99typedef unsigned short uint16_t;
     100typedef unsigned int   uint32_t;
     101typedef signed char    int8_t;
     102typedef signed short   int16_t;
     103typedef signed int     int32_t;
     104#endif
     105
    95106#if !defined(timerisset) && defined(MSCFAKES_NO_WINDOWS_H)
    96107struct timeval
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette