diff --git a/Frameworks/GME/gme/blargg_source.h b/Frameworks/GME/gme/blargg_source.h index 349e36fa3..41c9a6ad0 100644 --- a/Frameworks/GME/gme/blargg_source.h +++ b/Frameworks/GME/gme/blargg_source.h @@ -146,6 +146,10 @@ typedef unsigned char blargg_byte; #undef byte #define byte blargg_byte +#ifndef _countof +#define _countof(x) (sizeof((x))/sizeof((x)[0])) +#endif + #ifndef BLARGG_EXPORT #if defined (_WIN32) && BLARGG_BUILD_DLL #define BLARGG_EXPORT __declspec(dllexport)