From bd398a715ba855407460b9863412975deb38d89d Mon Sep 17 00:00:00 2001 From: zeromus Date: Thu, 25 Sep 2008 04:09:46 +0000 Subject: [PATCH] due to some printlog calls being left in MMU, non-windows builds wouldnt compile. as a temporary measure, printlog defines to nothing in other platforms for now. we need to make more formalized cross-platform logging though. --- desmume/src/types.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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