header files defining it.
1998-11-21 Alexandre Oliva <oliva@dcc.unicamp.br>
+ * libltdl/ltdl.c: replace NULL with 0, so that we don't depend on
+ header files defining it.
+
* ltconfig.in (archive_cmds, osf3, osf4, solaris, sunos4): create
libraries with gcc -shared if using gcc without GNU ld.
s++;
}
if (!s->name)
- return NULL;
+ return 0;
return (void*)s;
}
struct dld_symlist *s = (struct dld_symlist*)handle;
if (!s)
- return NULL;
+ return 0;
s++;
while (s->address) {
if (!strncmp(s->name, "ltexp_", 6)) {
}
s++;
}
- return NULL;
+ return 0;
}
#else
for (i = 0; i < status; i++)
if (strcmp(symbol, sym[i].name) == 0)
return sym[i].value;
- return NULL;
+ return 0;
}
#else
sys_dlopen (char *filename)
{
if (dld_link (filename))
- return NULL;
+ return 0;
return filename;
}
static lt_dlhandle
sys_dlopen (char *filename)
{
- return NULL;
+ return 0;
}
static void
static void *
sys_dlsym (lt_dlhandle handle, char *symbol)
{
- return NULL;
+ return 0;
}
#endif