aboutsummaryrefslogtreecommitdiffstats
path: root/g10/options.h
diff options
context:
space:
mode:
Diffstat (limited to 'g10/options.h')
-rw-r--r--g10/options.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/g10/options.h b/g10/options.h
index ffd4e574c..43b547c24 100644
--- a/g10/options.h
+++ b/g10/options.h
@@ -24,7 +24,16 @@
#undef ENABLE_COMMENT_PACKETS /* don't create comment packets */
+#ifndef EXTERN_UNLESS_MAIN_MODULE
+/* Norcraft can't cope with common symbols */
+ #if defined (__riscos__) && !defined (INCLUDED_BY_MAIN_MODULE)
+ #define EXTERN_UNLESS_MAIN_MODULE extern
+ #else
+ #define EXTERN_UNLESS_MAIN_MODULE
+ #endif
+#endif
+EXTERN_UNLESS_MAIN_MODULE
struct {
int verbose;
int quiet;