diff options
author | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-12-17 20:16:55 +0000 |
---|---|---|
committer | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-12-17 20:16:55 +0000 |
commit | 2d72446860abac08dc4f36b10fde7536f7897956 (patch) | |
tree | 25dc114bb696bc8752d68e6e050da8d3dda5f282 /include/modules.h | |
parent | 1cd73b4dadb8e618a0ec56289408922be42aac8a (diff) |
More CMake work, mostly to handle both *nix and Windows builds.
Also some tweaks to generation files (like version.sh) to take both input and output files as arguments, to handle CMake when it's used for an out-of-source build.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1836 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'include/modules.h')
-rw-r--r-- | include/modules.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/modules.h b/include/modules.h index 05ef6b524..dc00807c9 100644 --- a/include/modules.h +++ b/include/modules.h @@ -24,10 +24,10 @@ typedef HMODULE ano_module_t; #define ano_modopen(file) LoadLibrary(file) /* ano_moderr in modules.c */ -#define ano_modsym(file, symbol) (void *)GetProcAddress(file, symbol) +#define ano_modsym(file, symbol) (HMODULE)GetProcAddress(file, symbol) #define ano_modclose(file) FreeLibrary(file) ? 0 : 1 #define ano_modclearerr() SetLastError(0) -#define MODULE_EXT ".dll" +#define MODULE_EXT ".so" #else typedef void * ano_module_t; |