summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordougt%meer.net <devnull@localhost>2005-12-03 05:35:42 +0000
committerdougt%meer.net <devnull@localhost>2005-12-03 05:35:42 +0000
commit4223f53f7379548ac5baec974eb74d4199ba9e40 (patch)
tree24a747f83c891fdc621b626e577c5d71418bc4fa
parent2a1e9dfffe9dc82ad78caf926bc773b93e93e2ec (diff)
downloadnspr-hg-NSPRPUB_PRE_4_2_WINCE_BRANCH.tar.gz
Adding a way, if desired, for us to use the static NSPR libraries. Do not expect that this patch ever merges back into the offical releases. NPODB/Branch onlyNSPRPUB_PRE_4_2_WINCE_BRANCH
-rw-r--r--pr/include/prtypes.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/pr/include/prtypes.h b/pr/include/prtypes.h
index 5a340157..0c5d57a9 100644
--- a/pr/include/prtypes.h
+++ b/pr/include/prtypes.h
@@ -200,9 +200,14 @@
#endif
-#if defined(_NSPR_BUILD_)
+#if defined (_BUILD_NSPR_STATIC_)
+#define NSPR_API(__type) __type
+#define NSPR_DATA_API(__type) __type
+
+#elif defined(_NSPR_BUILD_)
#define NSPR_API(__type) PR_EXPORT(__type)
#define NSPR_DATA_API(__type) PR_EXPORT_DATA(__type)
+
#else
#define NSPR_API(__type) PR_IMPORT(__type)
#define NSPR_DATA_API(__type) PR_IMPORT_DATA(__type)