From c16c6653a112307d4f5ded3c3533f9621a945cb3 Mon Sep 17 00:00:00 2001 From: Max Lingua Date: Thu, 23 Jan 2014 01:29:30 -0500 Subject: PS2: Improved support for profiling (gprof) build --- backends/platform/ps2/fileio.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'backends/platform/ps2/fileio.cpp') diff --git a/backends/platform/ps2/fileio.cpp b/backends/platform/ps2/fileio.cpp index 1ec16a3817..cc1da2e511 100644 --- a/backends/platform/ps2/fileio.cpp +++ b/backends/platform/ps2/fileio.cpp @@ -409,7 +409,10 @@ uint32 Ps2File::read(void *dest, uint32 len) { break; // EOF } } +#ifndef ENABLE_PROFILING + // doesn't play nice with -pg cacheReadAhead(); +#endif #ifdef __PS2_FILE_SEMA__ SignalSema(_sema); #endif -- cgit v1.2.3