mirror of
git://git.savannah.gnu.org/libtool.git
synced 2024-12-27 07:09:26 +08:00
e76ee47bce
* mdemo/Makefile.am: ../libltdl is within $(srcdir) * libltdl, Makefile.am: added libltdl (a system independent dlopen wrapper library extracted from mdemo) * ltmain.in: added -module flag for compiling and linking of modules. If enabled it compiles always both .o (with -DLT_RENAME) and .lo files * mdemo: modified mdemo to work with libltdl * tests/ltdl*: added tests for libltdl
57 lines
1.9 KiB
C
57 lines
1.9 KiB
C
/* ltdl.h -- generic dlopen functions
|
|
Copyright (C) 1998 Thomas Tanner <tanner@gmx.de>
|
|
This file is part of GNU Libtool.
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
(at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program; if not, write to the Free Software
|
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
|
USA. */
|
|
|
|
/* Only include this header file once. */
|
|
#ifndef _LTDL_H_
|
|
#define _LTDL_H_ 1
|
|
|
|
/* __BEGIN_DECLS should be used at the beginning of your declarations,
|
|
so that C++ compilers don't mangle their names. Use __END_DECLS at
|
|
the end of C declarations. */
|
|
#undef __BEGIN_DECLS
|
|
#undef __END_DECLS
|
|
#ifdef __cplusplus
|
|
# define __BEGIN_DECLS extern "C" {
|
|
# define __END_DECLS }
|
|
#else
|
|
# define __BEGIN_DECLS /* empty */
|
|
# define __END_DECLS /* empty */
|
|
#endif
|
|
|
|
/* __P is a macro used to wrap function prototypes, so that compilers
|
|
that don't understand ANSI C prototypes still work, and ANSI C
|
|
compilers can issue warnings about type mismatches. */
|
|
#undef __P
|
|
#if defined (__STDC__) || defined (_AIX) || (defined (__mips) && defined (_SYSTYPE_SVR4)) || defined(WIN32) || defined(__cplusplus)
|
|
# define __P(protos) protos
|
|
#else
|
|
# define __P(protos) ()
|
|
#endif
|
|
|
|
typedef void *lt_dlhandle;
|
|
|
|
__BEGIN_DECLS
|
|
void lt_dlinit __P((void));
|
|
lt_dlhandle lt_dlopen __P((char *name));
|
|
void lt_dlclose __P((lt_dlhandle handle));
|
|
void *lt_dlsym __P((lt_dlhandle handle, char *name));
|
|
__END_DECLS
|
|
|
|
#endif /* !_LTDL_H_ */
|