ldmud-3.4.1/doc/
ldmud-3.4.1/doc/efun.de/
ldmud-3.4.1/doc/efun/
ldmud-3.4.1/doc/man/
ldmud-3.4.1/doc/other/
ldmud-3.4.1/mud/
ldmud-3.4.1/mud/heaven7/
ldmud-3.4.1/mud/lp-245/
ldmud-3.4.1/mud/lp-245/banish/
ldmud-3.4.1/mud/lp-245/doc/
ldmud-3.4.1/mud/lp-245/doc/examples/
ldmud-3.4.1/mud/lp-245/doc/sefun/
ldmud-3.4.1/mud/lp-245/log/
ldmud-3.4.1/mud/lp-245/obj/Go/
ldmud-3.4.1/mud/lp-245/players/lars/
ldmud-3.4.1/mud/lp-245/room/death/
ldmud-3.4.1/mud/lp-245/room/maze1/
ldmud-3.4.1/mud/lp-245/room/sub/
ldmud-3.4.1/mud/lp-245/secure/
ldmud-3.4.1/mud/morgengrauen/
ldmud-3.4.1/mud/morgengrauen/lib/
ldmud-3.4.1/mud/sticklib/
ldmud-3.4.1/mud/sticklib/src/
ldmud-3.4.1/mudlib/uni-crasher/
ldmud-3.4.1/pkg/
ldmud-3.4.1/pkg/debugger/
ldmud-3.4.1/pkg/diff/
ldmud-3.4.1/pkg/misc/
ldmud-3.4.1/src/autoconf/
ldmud-3.4.1/src/hosts/
ldmud-3.4.1/src/hosts/GnuWin32/
ldmud-3.4.1/src/hosts/amiga/
ldmud-3.4.1/src/hosts/win32/
ldmud-3.4.1/src/ptmalloc/
ldmud-3.4.1/src/util/
ldmud-3.4.1/src/util/erq/
ldmud-3.4.1/src/util/indent/hosts/next/
ldmud-3.4.1/src/util/xerq/
ldmud-3.4.1/src/util/xerq/lpc/
ldmud-3.4.1/src/util/xerq/lpc/www/
ldmud-3.4.1/test/t-030925/
ldmud-3.4.1/test/t-040413/
ldmud-3.4.1/test/t-041124/
#ifndef MY_STDINT_H__
#define MY_STDINT_H__

/*------------------------------------------------------------------
 * Portable definition of the subset of stdint.h we need.
 *------------------------------------------------------------------
 */

#include "driver.h"

#if defined(HAVE_STDINT_H)
#    include <stdint.h>
#elif defined(HAVE_INTTYPES_H)
#    include <inttypes.h>
#    define NEED_LEAST16_T
#elif defined(HAVE_INTTYPES)
#    include <sys/types.h>
#    define NEED_LEAST16_T
#else
#    define NEED_LEAST16_T

#    if SIZEOF_LONG == 4
typedef  unsigned long uint32_t;
#    elif SIZEOF_INT == 4
typedef  unsigned int uint32_t;
#    else
#        error "No suitable integer type found for uint32_t."
#    endif

#    if CHAR_BIT == 8
typedef  unsigned char uint8_t;
#    else
#        error "No suitable integer type found for uint8_t."
#    endif
#endif /* HAVE_STDINT_H */

#if defined(NEED_LEAST16_T)

#    if SIZEOF_LONG == 2
typedef  long int_least16_t;
#    elif SIZEOF_SHORT == 2
typedef  short int_least16_t;
#    else
#        error "No suitable integer type found for int_least16_t."
#    endif

#endif /* NEED_LEAST16_T */

#endif /* MY_STDINT_H__ */