Commit b944b290 authored by Niels Möller's avatar Niels Möller
Browse files

Define UINT16.

Rev: src/lsh_types.h:1.6
parent d6ed7dee
......@@ -2,8 +2,8 @@
*
*/
#ifndef LSH_TYPS_H_INCLUDED
#define LSH_TYPS_H_INCLUDED
#ifndef LSH_TYPES_H_INCLUDED
#define LSH_TYPES_H_INCLUDED
#ifdef HAVE_CONFIG_H
#include "config.h"
......@@ -20,6 +20,14 @@
#error Ledsen error
#endif
#if SIZEOF_SHORT >= 2
#define UINT16 unsigned short
#elif SIZEOF_INT >= 2
#define UINT16 unsigned int
#else
#error Ledsen error
#endif
#define UINT8 unsigned char
#ifdef __GNUC__
......@@ -68,4 +76,4 @@ struct callback
#define CALLBACK(c) ((c)->f(c))
#endif /* LSH_TYPS_H_INCLUDED */
#endif /* LSH_TYPES_H_INCLUDED */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment