diff options
| author | Sadie Powell <sadie@witchery.services> | 2024-01-22 19:25:21 +0000 |
|---|---|---|
| committer | Sadie Powell <sadie@witchery.services> | 2024-01-22 20:06:57 +0000 |
| commit | 1467de1c7ee03d393a62f57e54e564bd0462d758 (patch) | |
| tree | fba25ea2a8023828687b8e1280cb084e41cb55b3 /include/modules | |
| parent | c5023fdfa06a3b7c49d5320bd0a08f503989977f (diff) | |
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.
Diffstat (limited to 'include/modules')
| -rw-r--r-- | include/modules/ldap.h | 2 | ||||
| -rw-r--r-- | include/modules/sql.h | 2 |
2 files changed, 2 insertions, 2 deletions
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) { } |
