Home Download Musics Developers
API Sources Tools File Format Technicals

config_type68.h

00001 /* Configured types for sc68. */
00002 
00003 #ifndef _SC68_CONFIG_TYPE68_H_
00004 #define _SC68_CONFIG_TYPE68_H_
00005 
00006 #ifdef HAVE_CONFIG_H
00007 
00008 #define SIZEOF_CHAR      1
00009 #define SIZEOF_SHORT     2
00010 #define SIZEOF_INT       4
00011 #define SIZEOF_LONG      4
00012 #define SIZEOF_LONG_LONG 8
00013 
00014 #define TYPE_S8    signed char
00015 #define TYPE_U8  unsigned char
00016 #define TYPE_S16   signed short
00017 #define TYPE_U16 unsigned short
00018 #define TYPE_S32   signed int
00019 #define TYPE_U32 unsigned int
00020 #define TYPE_S64   signed long long
00021 #define TYPE_U64 unsigned long long
00022 
00023 #endif /* ifdef HAVE_CONFIG_H */
00024 
00025 /* Fallback */
00026 #ifndef NO_FALLBACK_CONFIG
00027 
00028 #ifndef SIZEOF_CHAR
00029 # define SIZEOF_CHAR      1
00030 #endif
00031 
00032 #ifndef SIZEOF_SHORT
00033 # define SIZEOF_SHORT     2
00034 #endif
00035 
00036 #ifndef SIZEOF_INT
00037 # define SIZEOF_INT       4
00038 #endif
00039 
00040 #ifndef SIZEOF_LONG
00041 # define SIZEOF_LONG      4
00042 #endif
00043 
00044 #ifndef SIZEOF_LONG_LONG
00045 # define  SIZEOF_LONG_LONG 8
00046 #endif
00047 
00048 #ifndef TYPE_S8
00049 # define TYPE_S8    signed char
00050 #endif
00051 
00052 #ifndef TYPE_U8
00053 # define TYPE_U8  unsigned char
00054 #endif
00055 
00056 #ifndef TYPE_S16
00057 # define TYPE_S16   signed short
00058 #endif
00059 
00060 #ifndef TYPE_U16
00061 # define TYPE_U16 unsigned short
00062 #endif
00063 
00064 #ifndef TYPE_S32
00065 # define TYPE_S32   signed int
00066 #endif
00067 
00068 #ifndef TYPE_U32
00069 # define TYPE_U32 unsigned int
00070 #endif
00071 
00072 #ifndef TYPE_S64
00073 # ifdef  _MSC_VER
00074 #  define TYPE_S64   signed __int64
00075 # else
00076 #  define TYPE_S64   signed long long
00077 # endif
00078 #endif
00079 
00080 #ifndef TYPE_U64
00081 # ifdef  _MSC_VER
00082 #  define TYPE_U64 unsigned __int64
00083 # else
00084 #  define TYPE_U64 unsigned long long
00085 # endif
00086 #endif
00087 
00088 #else /* #ifndef NO_FALLBACK_CONFIG */
00089 
00090 #if ! defined(TYPE_U8)  || ! defined (TYPE_S8) ||\
00091     ! defined(TYPE_U16) || ! defined (TYPE_S16) ||\
00092     ! defined(TYPE_U32) || ! defined (TYPE_S32) ||\
00093     ! defined(TYPE_U64) || ! defined (TYPE_S64)
00094 # error "Missing integer type configuration"
00095 #endif
00096 
00097 #endif /* #ifndef NO_FALLBACK_CONFIG */
00098 
00099 #endif /* #ifndef _SC68_CONFIG_TYPE68_H_ */