Shinya Kitaoka 810553
#pragma once
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#ifndef MACHINE_DEFINED
Toshihiro Shimizu 890ddd
#define MACHINE_DEFINED
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
/*
Toshihiro Shimizu 890ddd
#ifdef WIN32
Toshihiro Shimizu 890ddd
#define SCANNER_DEVNAME "scanner0"
Toshihiro Shimizu 890ddd
#define DDR_DEVNAME     "ddr0"
Toshihiro Shimizu 890ddd
#else
Toshihiro Shimizu 890ddd
#define SCANNER_DEVNAME "/dev/scanner"
Toshihiro Shimizu 890ddd
#define DDR_DEVNAME     "/dev/ddr"
Toshihiro Shimizu 890ddd
#endif
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#ifdef __sgi
Toshihiro Shimizu 890ddd
#define TNZ_LITTLE_ENDIAN 0
Toshihiro Shimizu 890ddd
#else
Toshihiro Shimizu 890ddd
#define TNZ_LITTLE_ENDIAN 1
Toshihiro Shimizu 890ddd
#endif
Toshihiro Shimizu 890ddd
*/
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#if defined(WIN32) || defined(i386)
Toshihiro Shimizu 890ddd
#define TNZ_LITTLE_ENDIAN 1
Toshihiro Shimizu 890ddd
#define TNZ_MACHINE_CHANNEL_ORDER_BGRM 1
Toshihiro Shimizu 890ddd
#elif defined(__sgi)
Toshihiro Shimizu 890ddd
#define TNZ_LITTLE_ENDIAN 0
Toshihiro Shimizu 890ddd
#define TNZ_MACHINE_CHANNEL_ORDER_MBGR 1
Toshihiro Shimizu 890ddd
#elif defined(LINUX)
Toshihiro Shimizu 890ddd
#define TNZ_LITTLE_ENDIAN 1
Toshihiro Shimizu 890ddd
#define TNZ_MACHINE_CHANNEL_ORDER_RGBM 1
Toshihiro Shimizu 890ddd
#elif defined(MACOSX)
Toshihiro Shimizu 890ddd
#define TNZ_LITTLE_ENDIAN 0
Toshihiro Shimizu 890ddd
#define TNZ_MACHINE_CHANNEL_ORDER_MRGB 1
Toshihiro Shimizu 890ddd
#else
Toshihiro Shimizu 890ddd
@UNKNOW PLATFORM @
Toshihiro Shimizu 890ddd
#endif
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
/*
Toshihiro Shimizu 890ddd
#ifdef WIN32
Toshihiro Shimizu 890ddd
#define TNZ_MACHINE_CHANNEL_ORDER_BGRM 1
Toshihiro Shimizu 890ddd
#else
Toshihiro Shimizu 890ddd
#define TNZ_MACHINE_CHANNEL_ORDER_MBGR 1
Toshihiro Shimizu 890ddd
#endif
Toshihiro Shimizu 890ddd
*/
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#endif /*MACHINE_DEFINED*/