Skip to content

Commit

Permalink
VS2010: Use <stdint.h> instead
Browse files Browse the repository at this point in the history
  • Loading branch information
kiyolee committed Apr 12, 2022
1 parent 2d41b80 commit 68d4891
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions win32/zipconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,13 @@
#if !defined(__STDC_FORMAT_MACROS)
#define __STDC_FORMAT_MACROS 1
#endif
#if defined(_MSC_VER) && _MSC_VER < 1700
#include <stdint.h>
#define PRIu32 "lu"
#define PRIu64 "llu"
#else
#include <inttypes.h>
#endif

typedef int8_t zip_int8_t;
typedef uint8_t zip_uint8_t;
Expand Down

0 comments on commit 68d4891

Please sign in to comment.