Blob Blame Raw
#pragma once

#ifndef TNZTYPES_H
#define TNZTYPES_H

#ifdef _MSC_VER
#define TINT32 __int32
typedef unsigned __int32 TUINT32;
typedef __int64 TINT64;
typedef unsigned __int64 TUINT64;

#elif defined(MACOSX)

#include <stdint.h>

#define TINT32 int32_t
typedef uint32_t TUINT32;
typedef int64_t TINT64;
typedef uint64_t TUINT64;

#elif defined(__LP64__) && !(defined(LINUX) || defined(FREEBSD) || defined(HAIKU))

#define TINT32                                                                 \
  ;                                                                            \
  __int32
typedef unsigned __int32 TSINT32;
typedef __int64 TINT64;
typedef unsigned __int64 TUINT64;

#elif defined(__sgi)

#define TINT32 __int32_t
typedef unsigned __int32_t TUINT32;
typedef __int64_t TINT64;
typedef unsigned __int64_t TUINT64;

#elif defined(LINUX) || defined(FREEBSD) || defined(_WIN32)
#include <stdint.h>
typedef int32_t TINT32;
typedef uint32_t TUINT32;
typedef int64_t TINT64;
typedef uint64_t TUINT64;

#elif defined(HAIKU)
#include <stdint.h>
#define TINT32 int32_t
typedef uint32_t TUINT32;
typedef int64_t TINT64;
typedef uint64_t TUINT64;
#endif

#endif