added more X11 code related to GC handling

This commit is contained in:
hyunghwan.chung
2017-06-29 15:04:35 +00:00
parent a2877ac905
commit d0b38926d4
5 changed files with 518 additions and 174 deletions

View File

@ -92,6 +92,7 @@
# include <unistd.h>
# include <fcntl.h>
# include <locale.h>
# if defined(USE_THREAD)
# include <pthread.h>
@ -1758,6 +1759,11 @@ int main (int argc, char* argv[])
}
#endif
if (!setlocale (LC_ALL, ""))
{
fprintf (stderr, "Warning: setlocale() error. carrying on.\n");
}
memset (&vmprim, 0, MOO_SIZEOF(vmprim));
vmprim.dl_open = dl_open;
vmprim.dl_close = dl_close;