# ne7ssh_types.h

    00001 /***************************************************************************
    00002  *   Copyright (C) 2005-2007 by NetSieben Technologies INC                 *
    00003  *   Author: Andrew Useckas                                                *
    00004  *   Email: andrew@netsieben.com                                           *
    00005  *                                                                         *
    00006  *   Windows Port and bugfixes: Keef Aragon <keef@netsieben.com>           *
    00007  *                                                                         *
    00008  *   This program may be distributed under the terms of the Q Public       *
    00009  *   License as defined by Trolltech AS of Norway and appearing in the     *
    00010  *   file LICENSE.QPL included in the packaging of this file.              *
    00011  *                                                                         *
    00012  *   This program is distributed in the hope that it will be useful,       *
    00013  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
    00014  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.                  *
    00015  ***************************************************************************/
    00016
    00017 #ifndef NE7SSH_TYPES_H
    00018 #define NE7SSH_TYPES_H
    00019
    00020 #if defined(WIN32) || defined(__MINGW32)
    00021   typedef int int32_t;
    00022   typedef long long      int64_t;
    00023   typedef short        int16_t;
    00024   typedef signed char  int8_t;
    00025
    00026   typedef unsigned int uint32_t;
    00027   typedef unsigned long long uint64_t;
    00028   typedef unsigned short uint16_t;
    00029   typedef unsigned char  uint8_t;
    00030
    00031 #   if defined(_WINDLL) || defined(_USRDLL) || defined(_CONSOLE) || defined(_WINDOWS)
    00032 #       ifdef NE7SSH_EXPORTS
    00033 #        define SSH_EXPORT __declspec(dllexport)
    00034 #      else
    00035 #        define SSH_EXPORT __declspec(dllimport)
    00036 #      endif
    00037 #   else
    00038 #       define SSH_EXPORT
    00039 #   endif
    00040 #else
    00041 #  include <inttypes.h>
    00042 #  define SSH_EXPORT
    00043 #endif
    00044
    00045 #ifndef int64_defined
    00046 #define int64_defined
    00047 typedef int64_t int64;
    00048 #endif
    00049
    00050 #ifndef uint64_defined
    00051 #define uint64_defined
    00052 typedef uint64_t uint64;
    00053 #endif
    00054
    00055 #ifndef int32_defined
    00056 #define int32_defined
    00057 typedef int32_t int32;
    00058 #endif
    00059
    00060 #ifndef uint32_defined
    00061 #define uint32_defined
    00062 typedef uint32_t uint32;
    00063 #endif
    00064
    00065 #ifndef int16_defined
    00066 #define int16_defined
    00067 typedef int16_t int16;
    00068 #endif
    00069
    00070 #ifndef uint16_defined
    00071 #define uint16_defined
    00072 typedef uint16_t uint16;
    00073 #endif
    00074
    00075 #ifndef int8_defined
    00076 #define int8_defined
    00077 typedef int8_t int8;
    00078 #endif
    00079
    00080 #ifndef uint8_defined
    00081 #define uint8_defined
    00082 typedef uint8_t uint8;
    00083 #endif
    00084
    00085 #ifndef Byte_defined
    00086 #define Byte_defined
    00087 typedef uint8_t Byte;
    00088 #endif
    00089
    00090 #if defined(WIN32) || defined(__MINGW32__)
    00091 #  define usleep(time) Sleep(time)
    00092 #endif
    00093
    00094 #endif
    00095