diff --git a/desmume/src/types.h b/desmume/src/types.h index 0b1368af5..7dbb5478b 100644 --- a/desmume/src/types.h +++ b/desmume/src/types.h @@ -20,6 +20,7 @@ #define TYPES_HPP #include +#include //analyze microsoft compilers #ifdef _MSC_VER @@ -146,14 +147,6 @@ #define _CDECL_ #endif -#ifndef INLINE - #if defined(_MSC_VER) || defined(__INTEL_COMPILER) - #define INLINE _inline - #else - #define INLINE inline - #endif -#endif - #ifndef FORCEINLINE #if defined(_MSC_VER) || defined(__INTEL_COMPILER) #define FORCEINLINE __forceinline @@ -404,16 +397,6 @@ inline u16 de16lsb(u8 *morp) return morp[0]|(morp[1]<<8); } -#ifndef ARRAY_SIZE -//taken from winnt.h -extern "C++" // templates cannot be declared to have 'C' linkage -template -char (*BLAHBLAHBLAH( UNALIGNED T (&)[N] ))[N]; - -#define ARRAY_SIZE(A) (sizeof(*BLAHBLAHBLAH(A))) -#endif - - //fairly standard for loop macros #define MACRODO1(TRICK,TODO) { const size_t X = TRICK; TODO; } #define MACRODO2(X,TODO) { MACRODO1((X),TODO) MACRODO1(((X)+1),TODO) }