summaryrefslogtreecommitdiff
path: root/os2
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
commit4d1ff10ffec86208b0da135b87c76b89e61c866e (patch)
tree741ba054917367001dce29e674a1e99c8fa229d3 /os2
parenteb9ee3dc93112029ee3de6fd047d54576a1f1a1f (diff)
downloadperl-4d1ff10ffec86208b0da135b87c76b89e61c866e.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 'os2')
-rw-r--r--os2/os2.c4
-rw-r--r--os2/os2ish.h6
2 files changed, 5 insertions, 5 deletions
diff --git a/os2/os2.c b/os2/os2.c
index d22553ad44..740f403d0b 100644
--- a/os2/os2.c
+++ b/os2/os2.c
@@ -29,7 +29,7 @@
#include "EXTERN.h"
#include "perl.h"
-#ifdef USE_THREADS
+#ifdef USE_5005THREADS
typedef void (*emx_startroutine)(void *);
typedef void* (*pthreads_startroutine)(void *);
@@ -1391,7 +1391,7 @@ mod2fname(pTHX_ SV *sv)
}
avlen --;
}
-#ifdef USE_THREADS
+#ifdef USE_5005THREADS
sum++; /* Avoid conflict of DLLs in memory. */
#endif
/* We always load modules as *specific* DLLs, and with the full name.
diff --git a/os2/os2ish.h b/os2/os2ish.h
index ede75fb77c..68b4dd9820 100644
--- a/os2/os2ish.h
+++ b/os2/os2ish.h
@@ -99,7 +99,7 @@
# undef I_SYS_UN
#endif
-#ifdef USE_THREADS
+#ifdef USE_5005THREADS
#define do_spawn(a) os2_do_spawn(aTHX_ (a))
#define do_aspawn(a,b,c) os2_do_aspawn(aTHX_ (a),(b),(c))
@@ -202,12 +202,12 @@ int pthread_create(pthread_t *tid, const pthread_attr_t *attr,
#define THREADS_ELSEWHERE
-#else /* USE_THREADS */
+#else /* USE_5005THREADS */
#define do_spawn(a) os2_do_spawn(a)
#define do_aspawn(a,b,c) os2_do_aspawn((a),(b),(c))
-#endif /* USE_THREADS */
+#endif /* USE_5005THREADS */
void Perl_OS2_init(char **);
void Perl_OS2_init3(char **envp, void **excH, int flags);