Skip to content

Commit

Permalink
Windows: update headers
Browse files Browse the repository at this point in the history
- Use headers from https://github.com/chemeris/msinttypes
- Use commit 7636cabe55318824dc702d15b69711f5d7c30250, not the latest
  • Loading branch information
bkpoon committed Dec 9, 2019
1 parent d301a45 commit 6ff0ac5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 19 deletions.
6 changes: 0 additions & 6 deletions msvc9.0_include/inttypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@
#error "Use this header only with Microsoft Visual C++ compilers!"
#endif // _MSC_VER ]

#if _MSC_VER <= 1800



#ifndef _MSC_INTTYPES_H_ // [
#define _MSC_INTTYPES_H_

Expand Down Expand Up @@ -308,5 +304,3 @@ imaxdiv_t __cdecl imaxdiv(intmax_t numer, intmax_t denom)


#endif // _MSC_INTTYPES_H_ ]

#endif // _MSC_VER <= 1800
15 changes: 2 additions & 13 deletions msvc9.0_include/stdint.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,6 @@
#pragma once
#endif

#if _MSC_VER > 1800 // [
#include <stdint.h>
#else // ] _MSC_VER > 1800 [

#include <limits.h>

// For Visual Studio 6 in C++ mode and for many Visual Studio versions when
Expand Down Expand Up @@ -243,17 +239,10 @@ typedef uint64_t uintmax_t;
#define UINT64_C(val) val##ui64

// 7.18.4.2 Macros for greatest-width integer constants
// These #ifndef's are needed to prevent collisions with <boost/cstdint.hpp>.
// Check out Issue 9 for the details.
#ifndef INTMAX_C // [
# define INTMAX_C INT64_C
#endif // INTMAX_C ]
#ifndef UINTMAX_C // [
# define UINTMAX_C UINT64_C
#endif // UINTMAX_C ]
#define INTMAX_C INT64_C
#define UINTMAX_C UINT64_C

#endif // __STDC_CONSTANT_MACROS ]

#endif // _MSC_VER > 1800 ]

#endif // _MSC_STDINT_H_ ]

0 comments on commit 6ff0ac5

Please sign in to comment.