/*---------------------------------------------------------------------------* Project: NintendoWare File: platform.h Copyright (C)2009-2010 Nintendo Co., Ltd./HAL Laboratory, Inc. All rights reserved. These coded instructions, statements, and computer programs contain proprietary information of Nintendo of America Inc. and/or Nintendo Company Ltd., and are protected by Federal copyright law. They may not be disclosed to third parties or copied or duplicated in any form, in whole or in part, without the prior written consent of Nintendo. $Revision: 13145 $ *---------------------------------------------------------------------------*/ #ifndef NW_CONFIG_PLATFORM_H_ #define NW_CONFIG_PLATFORM_H_ #if defined( NW_PLATFORM_RVL ) #include #elif defined( NW_PLATFORM_TWL ) #include #elif defined( NN_PLATFORM_CTR ) #include #elif defined( NW_PLATFORM_CTRWIN ) #include #elif defined( NW_PLATFORM_WIN32 ) #include #else #error "Unknown platform" #endif // TODO: 今からの変更は影響が大きいが、 TARGET と PLATFORM の名前の用途が逆の方がよいかも。 // ByteOrder Macro #define NW_ENDIAN_LITTLE (0) #define NW_ENDIAN_BIG (1) // NW_PLATFORM_ENDIAN (ターゲットとなるプラットフォームのバイトオーダー) の決定 #if defined( NW_LITTLE_ENDIAN ) #define NW_PLATFORM_ENDIAN NW_ENDIAN_LITTLE #define NW_CPU_ENDIAN NW_ENDIAN_LITTLE #else #define NW_PLATFORM_ENDIAN NW_ENDIAN_BIG #define NW_CPU_ENDIAN NW_ENDIAN_BIG #endif /* NW_CONFIG_PLATFORM_H_ */ #endif