diff options
author | Tor Lillqvist <tml@iki.fi> | 2000-10-19 17:52:12 +0000 |
---|---|---|
committer | Tor Lillqvist <tml@src.gnome.org> | 2000-10-19 17:52:12 +0000 |
commit | 4905022b8ecaf794faa9ce4ad9977cb7725e0b49 (patch) | |
tree | 269956cf0299b0081dbd2d3497e39b2eb485aaff /gfileutils.c | |
parent | 1bfc515a37d2e42157f869f8ac5339aff6ce10b3 (diff) | |
download | glib-4905022b8ecaf794faa9ce4ad9977cb7725e0b49.tar.gz |
Pass -DGSPAWN_HELPER when building it. Link with user32.lib.
2000-10-19 Tor Lillqvist <tml@iki.fi>
* makefile.msc.in: Pass -DGSPAWN_HELPER when building it. Link
with user32.lib.
* gspawn-win32.c
* gfileutils.c: Make them compile with picky MSVC.
* gwin32.h: New file. Move Win32-only stuff that isn't related to
GIOChannels here from giochannel.h.
* Makefile.am: Add it here.
* giochannel.h: Move stuff to gwin32.h.
* glib.h: On Win32, include gwin32.h.
Diffstat (limited to 'gfileutils.c')
-rw-r--r-- | gfileutils.c | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/gfileutils.c b/gfileutils.c index 74b6ac7f3..20a8d370a 100644 --- a/gfileutils.c +++ b/gfileutils.c @@ -33,8 +33,27 @@ #include <sys/stat.h> #include <fcntl.h> +#ifdef G_OS_WIN32 +#include <io.h> +#ifndef F_OK +#define F_OK 0 +#define X_OK 1 +#define W_OK 2 +#define R_OK 4 +#endif /* !F_OK */ + +#ifndef S_ISREG +#define S_ISREG(mode) ((mode)&_S_IFREG) +#endif + +#ifndef S_ISDIR +#define S_ISDIR(mode) ((mode)&_S_IFDIR) +#endif + +#endif /* G_OS_WIN32 */ + #ifndef S_ISLNK -# define S_ISLNK(x) 0 +#define S_ISLNK(x) 0 #endif #define _(x) x |