Bug 1471132 - Make building a binary component a compile-time error. r?froydnj
Loading binary components is not supported since
bug 1314955.
--- a/xpcom/components/Module.h
+++ b/xpcom/components/Module.h
@@ -151,13 +151,12 @@ struct Module
# endif
# if defined(MOZ_HAVE_ASAN_BLACKLIST)
# define NSMODULE_ASAN_BLACKLIST __attribute__((no_sanitize_address))
# else
# define NSMODULE_ASAN_BLACKLIST
# endif
# define NSMODULE_DEFN(_name) extern NSMODULE_SECTION NSMODULE_ASAN_BLACKLIST mozilla::Module const *const NSMODULE_NAME(_name)
#else
-# define NSMODULE_NAME(_name) NSModule
-# define NSMODULE_DEFN(_name) extern "C" NS_EXPORT mozilla::Module const *const NSModule
+# error Building binary XPCOM components is not supported anymore.
#endif
#endif // mozilla_Module_h