Skip to content

Commit

Permalink
types.h: drop definitions that can be used from stddef.h
Browse files Browse the repository at this point in the history
  • Loading branch information
zonque committed Dec 5, 2018
1 parent 6004d1c commit f0768db
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions types.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#ifndef _TYPES_H
#define _TYPES_H

#include <stddef.h>

typedef unsigned char u8;
typedef unsigned short u16;
typedef unsigned int u32;
Expand All @@ -9,10 +11,6 @@ typedef unsigned long long u64;
typedef unsigned int uint32_t;
typedef unsigned long long uint64_t;

typedef unsigned long uintptr_t;

typedef unsigned long size_t;

#define cpu_to_be32(x) ((u32)(x))
#define cpu_to_be64(x) ((u64)(x))

Expand All @@ -35,6 +33,4 @@ typedef unsigned long size_t;
(((u64)(x) & (u64)0x00ff000000000000ULL) >> 40) | \
(((u64)(x) & (u64)0xff00000000000000ULL) >> 56)))

#define NULL ((void *) 0)

#endif /* _TYPES_H */

0 comments on commit f0768db

Please sign in to comment.