mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 07:26:15 +01:00
MSVC: Move dirent implementation to glib/dirent/
This commit is contained in:
parent
193cc66919
commit
ec93d9e125
@ -41,8 +41,7 @@
|
||||
#include "glibintl.h"
|
||||
|
||||
#if defined (_MSC_VER) && !defined (HAVE_DIRENT_H)
|
||||
#include "../build/win32/dirent/dirent.h"
|
||||
#include "../build/win32/dirent/wdirent.c"
|
||||
#include "dirent/dirent.h"
|
||||
#endif
|
||||
|
||||
#include "glib-private.h" /* g_dir_open_with_errno, g_dir_new_from_dirp */
|
||||
|
@ -222,6 +222,9 @@ if host_system == 'windows'
|
||||
glib_sources += [glib_win_res]
|
||||
glib_sources += files('gwin32.c', 'gspawn-win32.c', 'giowin32.c')
|
||||
platform_deps = [winsock2, cc.find_library('winmm')]
|
||||
if cc.get_id() == 'msvc'
|
||||
glib_sources += files('dirent/wdirent.c')
|
||||
endif
|
||||
else
|
||||
glib_sources += files('glib-unix.c', 'gspawn.c', 'giounix.c')
|
||||
platform_deps = []
|
||||
|
Loading…
Reference in New Issue
Block a user