summaryrefslogtreecommitdiff
path: root/pr/include/prthread.h
diff options
context:
space:
mode:
Diffstat (limited to 'pr/include/prthread.h')
-rw-r--r--pr/include/prthread.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/pr/include/prthread.h b/pr/include/prthread.h
index a987202a..334116ce 100644
--- a/pr/include/prthread.h
+++ b/pr/include/prthread.h
@@ -159,7 +159,9 @@ NSPR_API(PRStatus) PR_JoinThread(PRThread *thread);
** Never returns NULL.
*/
NSPR_API(PRThread*) PR_GetCurrentThread(void);
+#ifndef NO_NSPR_10_SUPPORT
#define PR_CurrentThread() PR_GetCurrentThread() /* for nspr1.0 compat. */
+#endif /* NO_NSPR_10_SUPPORT */
/*
** Get the priority of "thread".