summaryrefslogtreecommitdiff
path: root/include/modules.h
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2010-09-17 19:20:07 -0400
committerAdam <Adam@anope.org>2010-09-17 19:20:07 -0400
commit227909e2cf0039737dc52872651837fe5f1702b5 (patch)
treeb8a7072c7d938ea66d9710a48d717b3eb76343de /include/modules.h
parentf71fb6e8133da955a58b1cca00013ce20c0b65cc (diff)
Rejig of some of the socket stuff. Fixed marking sockets as nonblocking on Windows. Added in a LastError function to keep having to use strerror/GetLastError everywhere.
Diffstat (limited to 'include/modules.h')
-rw-r--r--include/modules.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/modules.h b/include/modules.h
index ac76a4534..5748d4c10 100644
--- a/include/modules.h
+++ b/include/modules.h
@@ -27,6 +27,7 @@
# define dlsym(file, symbol) (HMODULE)GetProcAddress(file, symbol)
# define dlclose(file) FreeLibrary(file) ? 0 : 1
# define ano_modclearerr() SetLastError(0)
+# define ano_moderr() LastError().c_str()
#else
typedef void * ano_module_t;
@@ -36,6 +37,7 @@
* to be cleared, POSIX-wise. -GD
*/
# define ano_modclearerr() dlerror()
+# define ano_moderr() dlerror()
#endif
/** Possible return types from events.