Browse Source

use inttypes.h to declare ints in uint*.h

master
Felix von Leitner 13 years ago
parent
commit
2fd48c7e57
4 changed files with 13 additions and 6 deletions
  1. +1
    -0
      CHANGES
  2. +4
    -2
      uint16.h
  3. +4
    -2
      uint32.h
  4. +4
    -2
      uint64.h

+ 1
- 0
CHANGES View File

@@ -5,6 +5,7 @@
io_timeouted loop. (Dirk Engling)
add some int overflow check macros to rangecheck.h
fmt_ip6 compresses at best spot, not at first spot (Nikola Vladov)
use inttypes.h to declare ints in uint*.h

0.25:
array_allocate no longer truncates the array


+ 4
- 2
uint16.h View File

@@ -1,8 +1,10 @@
#ifndef UINT16_H
#define UINT16_H

typedef unsigned short uint16;
typedef signed short int16;
#include <inttypes.h>

typedef uint16_t uint16;
typedef int16_t int16;

#if defined(__i386__) && !defined(NO_UINT16_MACROS)
#define uint16_pack(out,in) (*(uint16*)(out)=(in))


+ 4
- 2
uint32.h View File

@@ -1,8 +1,10 @@
#ifndef UINT32_H
#define UINT32_H

typedef unsigned int uint32;
typedef signed int int32;
#include <inttypes.h>

typedef uint32_t uint32;
typedef int32_t int32;

#if defined(__i386__) && !defined(NO_UINT32_MACROS)
#define uint32_pack(out,in) (*(uint32*)(out)=(in))


+ 4
- 2
uint64.h View File

@@ -1,7 +1,9 @@
#ifndef UINT64_H
#define UINT64_H

typedef unsigned long long uint64;
typedef signed long long int64;
#include <inttypes.h>

typedef uint64_t uint64;
typedef int64_t int64;

#endif

Loading…
Cancel
Save