X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fdynamic.h;h=d42cf61bf965855dbbb8231e374543f1b5b04ada;hb=3cc6f9f550aef92e7d7fee22e0589840a36bf6c4;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 -