From: Gurusamy Sarathy Date: Tue, 21 Mar 2000 04:05:00 +0000 (+0000) Subject: disable unused Windows code that won't run on Windows 95 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=90430aa1bf5124b92f92cfc6b13f379955a95711;p=p5sagit%2Fp5-mst-13.2.git disable unused Windows code that won't run on Windows 95 p4raw-id: //depot/perl@5850 --- diff --git a/win32/vmem.h b/win32/vmem.h index cf3f502..0fcae27 100644 --- a/win32/vmem.h +++ b/win32/vmem.h @@ -421,11 +421,19 @@ void VMem::FreeLock(void) int VMem::IsLocked(void) { +#if 0 + /* XXX TryEnterCriticalSection() is not available in some versions + * of Windows 95. Since this code is not used anywhere yet, we + * skirt the issue for now. */ BOOL bAccessed = TryEnterCriticalSection(&m_cs); if(bAccessed) { LeaveCriticalSection(&m_cs); } return !bAccessed; +#else + ASSERT(0); /* alarm bells for when somebody calls this */ + return 0; +#endif }