From 53d799b2162eef978c27d173bee084526147e123 Mon Sep 17 00:00:00 2001 From: fuzzie Date: Tue, 25 Mar 2008 22:53:38 +0000 Subject: [PATCH] fix imageManager.cpp so it doesn't try caching to s16 on little endian, since it's probably broken the Windows build and isn't ready for use anyway git-svn-id: svn://openc2e.ccdevnet.org/openc2e/trunk@1754 5a3b5b51-85f2-0310-b56e-886e3cf1dda3 --- imageManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/imageManager.cpp b/imageManager.cpp index b77c67d..1d69cda 100644 --- a/imageManager.cpp +++ b/imageManager.cpp @@ -62,7 +62,7 @@ bool tryOpen(mmapifstream *in, shared_ptr &img, std::string fnam cachename.append(".s16"); } -#ifdef OC2E_BIG_ENDIAN +#if OC2E_BIG_ENDIAN if (ft != spr) cachename = cachename + ".big"; #endif @@ -79,7 +79,7 @@ bool tryOpen(mmapifstream *in, shared_ptr &img, std::string fnam in->clear(); in->mmapopen(realfile.native_file_string()); -#ifdef OC2E_BIG_ENDIAN +#if OC2E_BIG_ENDIAN if (in->is_open() && (ft != spr)) { fileSwapper f; switch (ft) { -- 2.11.4.GIT