3 * Copyright (C) Maxim Dounin
4 * Copyright (C) Nginx, Inc.
8 #ifndef _NGX_DLOPEN_H_INCLUDED_
9 #define _NGX_DLOPEN_H_INCLUDED_
12 #include <ngx_config.h>
16 #define NGX_HAVE_DLOPEN 1
19 #define ngx_dlopen(path) LoadLibrary((char *) path)
20 #define ngx_dlopen_n "LoadLibrary()"
22 #define ngx_dlsym(handle, symbol) (void *) GetProcAddress(handle, symbol)
23 #define ngx_dlsym_n "GetProcAddress()"
25 #define ngx_dlclose(handle) (FreeLibrary(handle) ? 0 : -1)
26 #define ngx_dlclose_n "FreeLibrary()"
29 char *ngx_dlerror(void);
32 #endif /* _NGX_DLOPEN_H_INCLUDED_ */