mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-01 03:22:48 -05:00
Adopt C99 <stdint.h> integer types.
The annoying int64.h is completely retired, since C99 guarantees a 64-bit integer type that you can actually treat like an ordinary integer. Also, I've replaced the local typedefs uint32 and word32 (scattered through different parts of the crypto code) with the standard uint32_t.
This commit is contained in:
12
defs.h
12
defs.h
@ -12,6 +12,15 @@
|
||||
#define PUTTY_DEFS_H
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#if defined _MSC_VER && _MSC_VER < 1800
|
||||
/* Work around lack of inttypes.h in older MSVC */
|
||||
#define PRIu64 "I64u"
|
||||
#define SCNu64 "I64u"
|
||||
#else
|
||||
#include <inttypes.h>
|
||||
#endif
|
||||
|
||||
#ifndef FALSE
|
||||
#define FALSE 0
|
||||
@ -32,9 +41,6 @@ typedef struct strbuf strbuf;
|
||||
|
||||
struct RSAKey;
|
||||
|
||||
#include <stdint.h>
|
||||
typedef uint32_t uint32;
|
||||
|
||||
typedef struct BinarySink BinarySink;
|
||||
typedef struct BinarySource BinarySource;
|
||||
|
||||
|
Reference in New Issue
Block a user