1 /*---------------------------------------------------------------------------* 2 Project: NintendoWare 3 File: platform.h 4 5 Copyright (C)2009-2010 Nintendo Co., Ltd./HAL Laboratory, Inc. All rights reserved. 6 7 These coded instructions, statements, and computer programs contain 8 proprietary information of Nintendo of America Inc. and/or Nintendo 9 Company Ltd., and are protected by Federal copyright law. They may 10 not be disclosed to third parties or copied or duplicated in any form, 11 in whole or in part, without the prior written consent of Nintendo. 12 13 $Revision: 13145 $ 14 *---------------------------------------------------------------------------*/ 15 16 #ifndef NW_CONFIG_PLATFORM_H_ 17 #define NW_CONFIG_PLATFORM_H_ 18 19 #if defined( NW_PLATFORM_RVL ) 20 #include <nw/config/platform/rvl.h> 21 #elif defined( NW_PLATFORM_TWL ) 22 #include <nw/config/platform/twl.h> 23 #elif defined( NN_PLATFORM_CTR ) 24 #include <nw/config/platform/ctr.h> 25 #elif defined( NW_PLATFORM_CTRWIN ) 26 #include <nw/config/platform/ctrwin.h> 27 #elif defined( NW_PLATFORM_WIN32 ) 28 #include <nw/config/platform/win32.h> 29 #else 30 31 #error "Unknown platform" 32 33 #endif 34 35 // TODO: 今からの変更は影響が大きいが、 TARGET と PLATFORM の名前の用途が逆の方がよいかも。 36 37 // ByteOrder Macro 38 #define NW_ENDIAN_LITTLE (0) 39 #define NW_ENDIAN_BIG (1) 40 41 42 // NW_PLATFORM_ENDIAN (ターゲットとなるプラットフォームのバイトオーダー) の決定 43 #if defined( NW_LITTLE_ENDIAN ) 44 #define NW_PLATFORM_ENDIAN NW_ENDIAN_LITTLE 45 #define NW_CPU_ENDIAN NW_ENDIAN_LITTLE 46 #else 47 #define NW_PLATFORM_ENDIAN NW_ENDIAN_BIG 48 #define NW_CPU_ENDIAN NW_ENDIAN_BIG 49 #endif 50 51 /* NW_CONFIG_PLATFORM_H_ */ 52 #endif 53