Fix build for Windows people
[mono.git] / mono / os / win32 / util.c
1 /*
2  * util.c: Simple runtime tools for the Win32 platform
3  *
4  * Author:
5  *   Miguel de Icaza
6  *
7  * (C) 2002 Ximian, Inc. (http://www.ximian.com)
8  */
9 #include <config.h>
10 #include <mono/metadata/metadata.h>
11 #include <mono/os/util.h>
12
13 /*
14  * mono_set_rootdir:
15  * @vm_filename: The pathname of the code invoking us (argv [0])
16  *
17  * Informs the runtime of the root directory for the Mono installation,
18  * the vm_file
19  */
20 void
21 mono_set_rootdir (const char *vm_filename)
22 {
23         char *dir = g_dirname (vm_filename);
24         char *root = g_strconcat (dir, "/lib");
25
26         mono_assembly_setrootdir (root);
27         g_free (root);
28         g_free (dir);
29 }
30
31