+2000-11-29 Gary V. Vaughan <gvv@techie.com>
+
+ * libltdl/ltdl.h (lt_dlhandle): Rename the wrapped structure
+ to prevent nameclash when used from C++.
+ * libltdl/ltdl.c: Fixed all references.
+
2000-11-25 Gary V. Vaughan <gvv@techie.com>
* libltdl/ltdl.c (lt_dlopen): Change the default search order
lt_user_data dlloader_data;
};
-struct lt_dlhandle {
- struct lt_dlhandle *next;
+struct lt_dlhandle_struct {
+ struct lt_dlhandle_struct *next;
lt_dlloader *loader; /* dlopening interface */
lt_dlinfo info;
int depcount; /* number of dependencies */
/* dlopen self? */
if (!filename)
{
- handle = (lt_dlhandle) lt_dlmalloc (sizeof (struct lt_dlhandle));
+ handle = (lt_dlhandle) lt_dlmalloc (sizeof (struct lt_dlhandle_struct));
if (!handle)
{
last_error = LT_DLSTRERROR (NO_MEMORY);
if (ext && strcmp(ext, ".la") == 0)
{
/* this seems to be a libtool module */
- FILE *file;
+ FILE *file = 0;
int i;
char *dlname = 0, *old_name = 0;
char *libdir = 0, *deplibs = 0;
lt_dlfree (line);
/* allocate the handle */
- handle = (lt_dlhandle) lt_dlmalloc (sizeof (struct lt_dlhandle));
+ handle = (lt_dlhandle) lt_dlmalloc (sizeof (struct lt_dlhandle_struct));
if (!handle || error)
{
if (handle)
else
{
/* not a libtool module */
- handle = (lt_dlhandle) lt_dlmalloc (sizeof (struct lt_dlhandle));
+ handle = (lt_dlhandle) lt_dlmalloc (sizeof (struct lt_dlhandle_struct));
if (!handle)
{
last_error = LT_DLSTRERROR (NO_MEMORY);
/* --- DYNAMIC MODULE LOADING API --- */
-typedef struct lt_dlhandle *lt_dlhandle; /* A loaded module. */
+typedef struct lt_dlhandle_struct *lt_dlhandle; /* A loaded module. */
/* Initialisation and finalisation functions for libltdl. */
extern int lt_dlinit LT_PARAMS((void));