summaryrefslogtreecommitdiff
path: root/win32/win32thread.h
diff options
context:
space:
mode:
authorNick Ing-Simmons <nik@tiuk.ti.com>1997-11-16 23:14:36 +0000
committerNick Ing-Simmons <nik@tiuk.ti.com>1997-11-16 23:14:36 +0000
commitbbc8f9de328519d89fa89d8fca21fe808800d6a2 (patch)
tree72f85dccf0490b17a1a933686d1a827c43fb3739 /win32/win32thread.h
parent0fefa03b970ac01e359bb69c9e4daaddc57f3db9 (diff)
downloadperl-bbc8f9de328519d89fa89d8fca21fe808800d6a2.tar.gz
MYMALLOC for Win32:
1. Initialize malloc_mutex before it is used (all platforms!) 2. Adjust #ifdef muddle to allow MYMALLOC and win32_ to coexist 3. Tweak win32/config*.* to define MYMALLOC 4. Provide sbrk() in terms of VirtualAlloc(). Also fixup -MT (perl95) build to handle Perl_current_thread via call to DLL (as though an extension). p4raw-id: //depot/ansiperl@259
Diffstat (limited to 'win32/win32thread.h')
-rw-r--r--win32/win32thread.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/win32thread.h b/win32/win32thread.h
index 1807f3bc46..66f216876f 100644
--- a/win32/win32thread.h
+++ b/win32/win32thread.h
@@ -108,7 +108,7 @@ typedef THREAD_RET_TYPE thread_func_t(void *);
START_EXTERN_C
-#ifdef PERLDLL
+#if defined(PERLDLL) && defined(_DLL)
extern __declspec(thread) struct thread *Perl_current_thread;
#define SET_THR(t) (Perl_current_thread = t)
#define THR Perl_current_thread