/*---------------------------------------------------------------------------* Project: NintendoWare File: msvc.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: 16785 $ *---------------------------------------------------------------------------*/ #ifndef NW_CONFIG_COMPILER_MSVC_H_ #define NW_CONFIG_COMPILER_MSVC_H_ #pragma warning( disable : 4200 ) // warning: zero-sized array in struct/union #pragma warning( disable : 4311 ) // warning: pointer truncation from 'type' to 'type' #pragma warning( disable : 4312 ) // warning: conversion from 'type' to 'type' of greater size #pragma warning( disable : 4355 ) // warning: used in base member initializer list #if !defined(__midl) && (defined(_X86_) || defined(_M_IX86)) && _MSC_VER >= 1300 #define NW_COMPILER_WITH_W64 #endif #define NW_NO_THROW throw() #define NW_NO_INLINE(function) __declspec(noinline) function #include #include inline int isfinite(float f) { return _finite( f ); } inline int isnan(float f) { return _isnan( f ); } void* operator new( size_t size, void* ptr ); void* operator new[]( size_t size, void* ptr ); void operator delete( void* memory, void* ptr ); void operator delete[]( void* memory, void* ptr ); /* NW_CONFIG_COMPILER_MSVC_H_ */ #endif