X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fdynamic.h;h=d42cf61bf965855dbbb8231e374543f1b5b04ada;hb=d68c5be901d1d3f3a68e9796f9cd0815a4568a72;hp=3be91992963380455df0023e34109670702d11c8;hpb=553a8da754c8cd308bad2008018849714e70f9b7;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/dynamic.h b/include/dynamic.h index 3be919929..d42cf61bf 100644 --- a/include/dynamic.h +++ b/include/dynamic.h @@ -20,8 +20,7 @@ */ -#ifndef DLL_H -#define DLL_H +#pragma once /** The DLLManager class is able to load a module file by filename, * and locate its init_module symbol. @@ -33,6 +32,12 @@ class CoreExport DLLManager : public classbase */ std::string err; +#ifdef _WIN32 + /** Sets the last error string + */ + void RetrieveLastError(); +#endif + public: /** This constructor loads the module using dlopen() * @param fname The filename to load. This should be within @@ -59,6 +64,3 @@ class CoreExport DLLManager : public classbase /** Get detailed version information from the module file */ std::string GetVersion(); }; - -#endif -