diff --git a/desmume/src/types.h b/desmume/src/types.h index 0597f2453..5cc48bad3 100644 --- a/desmume/src/types.h +++ b/desmume/src/types.h @@ -186,7 +186,7 @@ typedef int desmume_BOOL; # define LOCAL_TO_LE_64(x) (x) #endif -/* kilobytes and megabytes macro */ +// kilobytes and megabytes macro #define MB(x) ((x)*1024*1024) #define KB(x) ((x)*1024) @@ -223,4 +223,10 @@ inline void FlipByteOrder(u8 *src, u32 count) } } +//as a hack until we set up better cross-platform logging, we need to prevent printlog from being define in any platform but windows +#ifndef _WIN32 +#define printlog(X) ((void)(X)) +#endif + + #endif