mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 02:40:49 +00:00
LibCore: Add S_ISDIR, S_ISREG to System.h on Windows
Before this commit, LibCore/System.h exposed only part of System::stat API on Windows. Namely, users of Core::System::stat had to #include <dirent.h> in order to check the return value of stat. It is OK for low-level libs like LibCore/LibFileSystem, but S_ISDIR is also used in LibWeb\Loader\GeneratedPagesLoader.cpp. We want to avoid platform #ifdefs in LibWeb.
This commit is contained in:
@@ -11,10 +11,6 @@
|
||||
#include <LibCore/ResourceImplementationFile.h>
|
||||
#include <LibCore/System.h>
|
||||
|
||||
#if defined(AK_OS_WINDOWS)
|
||||
# include <dirent.h>
|
||||
#endif
|
||||
|
||||
namespace Core {
|
||||
|
||||
ResourceImplementationFile::ResourceImplementationFile(String base_directory)
|
||||
|
||||
Reference in New Issue
Block a user