#include "libyasm.h"
/*@unused@*/ RCSID("$IdPath$");
+#ifndef WIN32
#include "ltdl.h"
+#endif
#include "yasm-module.h"
#include "yasm-options.h"
/*@null@*/ FILE *in = NULL, *obj = NULL;
yasm_sectionhead *sections;
size_t i;
+#ifndef WIN32
int errors;
+#endif
#if defined(HAVE_SETLOCALE) && defined(HAVE_LC_MESSAGES)
setlocale(LC_MESSAGES, "");
yasm_gettext_hook = handle_yasm_gettext;
yasm_errwarn_initialize();
+#ifndef WIN32
/* Set libltdl malloc/free functions. */
#ifdef WITH_DMALLOC
lt_dlmalloc = malloc;
print_error(_("Module loader initialization failed"));
return EXIT_FAILURE;
}
+#endif
if (parse_cmdline(argc, argv, options, NELEMS(options), print_error))
return EXIT_FAILURE;
unload_modules();
+#ifndef WIN32
/* Finish with libltdl. */
lt_dlexit();
+#endif
if (DO_FREE) {
if (in_filename)