From: Peter Johnson Date: Sun, 16 Mar 2003 23:50:59 +0000 (-0000) Subject: Avoid warning by splitting LTDL_SET_PRELOADED_SYMBOLS() into its components. X-Git-Tag: v0.2.2~3^2~62 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8d517f5450dbdf1e9f9cbfd1ed4608a029965a7a;p=yasm Avoid warning by splitting LTDL_SET_PRELOADED_SYMBOLS() into its components. svn path=/trunk/yasm/; revision=869 --- diff --git a/frontends/yasm/yasm.c b/frontends/yasm/yasm.c index 6bd6e46d..815d01cf 100644 --- a/frontends/yasm/yasm.c +++ b/frontends/yasm/yasm.c @@ -40,6 +40,10 @@ # define YASM_MODULE_PATH_ENV "YASM_MODULE_PATH" #endif +#ifndef WIN32 +extern const lt_dlsymlist lt_preloaded_symbols[]; +#endif + /* Preprocess-only buffer size */ #define PREPROC_BUF_SIZE 16384 @@ -164,7 +168,7 @@ main(int argc, char *argv[]) #endif /* Initialize preloaded symbol lookup table. */ - LTDL_SET_PRELOADED_SYMBOLS(); + lt_dlpreload_default(lt_preloaded_symbols); /* Initialize libltdl. */ errors = lt_dlinit();