summaryrefslogtreecommitdiff
path: root/NetWare
diff options
context:
space:
mode:
authorArtur Bergman <sky@nanisky.com>2001-08-27 15:16:42 +0000
committerArtur Bergman <sky@nanisky.com>2001-08-27 15:16:42 +0000
commitdaced680dbb75eec05dbd8b165b1a9437d0f6111 (patch)
tree741ba054917367001dce29e674a1e99c8fa229d3 /NetWare
parent94dd39f730bfb48683a46a6412b010592b808b4a (diff)
downloadperl-daced680dbb75eec05dbd8b165b1a9437d0f6111.tar.gz
Changes USE_THREADS to USE_5005THREADS in the entire source.
Thanks to H. Merijn Brand for the patch. Some of the comments and or guards might be removable in perl.h now. p4raw-id: //depot/perl@11758
Diffstat (limited to 'NetWare')
-rw-r--r--NetWare/config_H.wc2
-rw-r--r--NetWare/nw5thread.c6
-rw-r--r--NetWare/nw5thread.h2
3 files changed, 5 insertions, 5 deletions
diff --git a/NetWare/config_H.wc b/NetWare/config_H.wc
index eb3c2e0e5f..f10a79811a 100644
--- a/NetWare/config_H.wc
+++ b/NetWare/config_H.wc
@@ -3220,7 +3220,7 @@
/*#define USE_5005THREADS /**/
#define USE_ITHREADS /**/
#if defined(USE_5005THREADS) && !defined(USE_ITHREADS)
-#define USE_THREADS /* until src is revised*/
+#define USE_5005THREADS /* until src is revised*/
#endif
/*#define OLD_PTHREADS_API /**/
/*#define USE_REENTRANT_API /**/
diff --git a/NetWare/nw5thread.c b/NetWare/nw5thread.c
index 5cfa1801fc..e99512afbf 100644
--- a/NetWare/nw5thread.c
+++ b/NetWare/nw5thread.c
@@ -38,7 +38,7 @@ __declspec(thread) void *PL_current_context = NULL;
void
Perl_set_context(void *t)
{
-#if defined(USE_THREADS) || defined(USE_ITHREADS)
+#if defined(USE_5005THREADS) || defined(USE_ITHREADS)
# ifdef USE_DECLSPEC_THREAD
Perl_current_context = t;
# else
@@ -51,7 +51,7 @@ Perl_set_context(void *t)
void *
Perl_get_context(void)
{
-#if defined(USE_THREADS) || defined(USE_ITHREADS)
+#if defined(USE_5005THREADS) || defined(USE_ITHREADS)
# ifdef USE_DECLSPEC_THREAD
return Perl_current_context;
# else
@@ -67,7 +67,7 @@ Perl_get_context(void)
BOOL
Remove_Thread_Ctx(void)
{
-#if defined(USE_THREADS) || defined(USE_ITHREADS)
+#if defined(USE_5005THREADS) || defined(USE_ITHREADS)
# ifdef USE_DECLSPEC_THREAD
return TRUE;
# else
diff --git a/NetWare/nw5thread.h b/NetWare/nw5thread.h
index 895338c687..58e1596c3c 100644
--- a/NetWare/nw5thread.h
+++ b/NetWare/nw5thread.h
@@ -27,7 +27,7 @@
typedef long perl_key;
-#if (defined (USE_ITHREADS) || defined (USE_THREADS)) && defined(MPK_ON)
+#if (defined (USE_ITHREADS) || defined (USE_5005THREADS)) && defined(MPK_ON)
#ifdef __cplusplus
extern "C"
{