1 #pragma once
2 /*
3  * dlfcn-win32
4  * Copyright (c) 2007 Ramiro Polla
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
19  */
20 
21 #ifndef DLFCN_H
22 #define DLFCN_H
23 
24 /* POSIX says these are implementation-defined.
25  * To simplify use with Windows API, we treat them the same way.
26  */
27 
28 #define RTLD_LAZY   0
29 #define RTLD_NOW    0
30 
31 #define RTLD_GLOBAL (1 << 1)
32 #define RTLD_LOCAL  (1 << 2)
33 
34 /* These two were added in The Open Group Base Specifications Issue 6.
35  * Note: All other RTLD_* flags in any dlfcn.h are not standard compliant.
36  */
37 
38 #define RTLD_DEFAULT    0
39 #define RTLD_NEXT       0
40 
41 void *dlopen ( const char *file, int mode );
42 int   dlclose( void *handle );
43 void *dlsym  ( void *handle, const char *name );
44 char *dlerror( void );
45 
46 #endif /* DLFCN-WIN32_H */
47