summaryrefslogtreecommitdiff
path: root/win32/vmem.h
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-03-21 04:05:00 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-03-21 04:05:00 +0000
commit90430aa1bf5124b92f92cfc6b13f379955a95711 (patch)
treefd55c7b6ef1c073b3831787fe3b7a60ac6825eff /win32/vmem.h
parent719911cc0ef424f213e0e6e02359decafbe1180f (diff)
downloadperl-90430aa1bf5124b92f92cfc6b13f379955a95711.tar.gz
disable unused Windows code that won't run on Windows 95
p4raw-id: //depot/perl@5850
Diffstat (limited to 'win32/vmem.h')
-rw-r--r--win32/vmem.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/win32/vmem.h b/win32/vmem.h
index cf3f502ca0..0fcae27a6c 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
}