summaryrefslogtreecommitdiff
path: root/src/types.h
blob: de52053eadadd2efd1cb066b20b52b511ce649a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef AUDIERE_TYPES_H
#define AUDIERE_TYPES_H

namespace audiere {

  #ifdef _MSC_VER  // VC++

    typedef unsigned __int8  u8;
    typedef signed   __int8  s8;
    typedef unsigned __int16 u16;
    typedef signed   __int16 s16;
    typedef unsigned __int32 u32;
    typedef signed   __int32 s32;
    typedef unsigned __int64 u64;
    typedef signed   __int64 s64;

  #else            // assume gcc i386 linux ;)

    typedef unsigned char      u8;
    typedef signed   char      s8;
    typedef unsigned short     u16;
    typedef signed   short     s16;
    typedef unsigned int       u32;
    typedef signed   int       s32;
    typedef unsigned long long u64;
    typedef signed   long long s64;

  #endif

}

#endif