diff options
-rw-r--r-- | pr/include/prtypes.h | 7 |
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) |