From 1467de1c7ee03d393a62f57e54e564bd0462d758 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Mon, 22 Jan 2024 19:25:21 +0000 Subject: Mark all exception types as CoreExport. From the GCC docs: >Exception catching of a user defined type in a binary other than >the one which threw the exception requires a typeinfo lookup. Closes #335. --- include/modules/ldap.h | 2 +- include/modules/sql.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'include/modules') diff --git a/include/modules/ldap.h b/include/modules/ldap.h index 210579db4..b1589a18c 100644 --- a/include/modules/ldap.h +++ b/include/modules/ldap.h @@ -8,7 +8,7 @@ #pragma once -class LDAPException : public ModuleException +class CoreExport LDAPException : public ModuleException { public: LDAPException(const Anope::string &reason) : ModuleException(reason) { } diff --git a/include/modules/sql.h b/include/modules/sql.h index 827dd3051..8eaf56c9a 100644 --- a/include/modules/sql.h +++ b/include/modules/sql.h @@ -81,7 +81,7 @@ namespace SQL /** A SQL exception, can be thrown at various points */ - class Exception : public ModuleException + class CoreExport Exception : public ModuleException { public: Exception(const Anope::string &reason) : ModuleException(reason) { } -- cgit