mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
gst/: Fix macro's for Mingw (fixes #162276).
Original commit message from CVS: Reviewed by: Ronald S. Bultje <rbultje@ronald.bitfreak.net> * gst/gstregistry.h: * gst/registries/gstxmlregistry.c: Fix macro's for Mingw (fixes #162276).
This commit is contained in:
parent
e2de071d42
commit
d742d805d4
3 changed files with 22 additions and 4 deletions
11
ChangeLog
11
ChangeLog
|
@ -1,3 +1,11 @@
|
||||||
|
2005-01-05 Vincent Torri <torri@iecn.u-nancy.fr>
|
||||||
|
|
||||||
|
Reviewed by: Ronald S. Bultje <rbultje@ronald.bitfreak.net>
|
||||||
|
|
||||||
|
* gst/gstregistry.h:
|
||||||
|
* gst/registries/gstxmlregistry.c:
|
||||||
|
Fix macro's for Mingw (fixes #162276).
|
||||||
|
|
||||||
2005-01-04 Stefan Kost <ensonic@users.sf.net>
|
2005-01-04 Stefan Kost <ensonic@users.sf.net>
|
||||||
|
|
||||||
* docs/README:
|
* docs/README:
|
||||||
|
@ -7,7 +15,8 @@
|
||||||
* docs/gst/tmpl/gstthread.sgml:
|
* docs/gst/tmpl/gstthread.sgml:
|
||||||
more enumtypes cleanup
|
more enumtypes cleanup
|
||||||
* gst/gsterror.h:
|
* gst/gsterror.h:
|
||||||
activated documentation comments, now someone needs to document the enums :(
|
activated documentation comments, now someone needs to document
|
||||||
|
the enums :(
|
||||||
|
|
||||||
2005-01-03 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
|
2005-01-03 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
|
||||||
|
|
||||||
|
|
|
@ -36,14 +36,23 @@
|
||||||
|
|
||||||
/* compatibility for pre-POSIX defines */
|
/* compatibility for pre-POSIX defines */
|
||||||
#ifdef S_IRUSR
|
#ifdef S_IRUSR
|
||||||
|
#if defined(_WIN32) && defined(__MINGW32__)
|
||||||
|
#define REGISTRY_DIR_PERMS (S_ISGID | \
|
||||||
|
S_IRUSR | S_IWUSR | S_IXUSR)
|
||||||
|
#else
|
||||||
#define REGISTRY_DIR_PERMS (S_ISGID | \
|
#define REGISTRY_DIR_PERMS (S_ISGID | \
|
||||||
S_IRUSR | S_IWUSR | S_IXUSR | \
|
S_IRUSR | S_IWUSR | S_IXUSR | \
|
||||||
S_IRGRP | S_IXGRP | \
|
S_IRGRP | S_IXGRP | \
|
||||||
S_IROTH | S_IXOTH)
|
S_IROTH | S_IXOTH)
|
||||||
|
#endif
|
||||||
#define REGISTRY_TMPFILE_PERMS (S_IRUSR | S_IWUSR)
|
#define REGISTRY_TMPFILE_PERMS (S_IRUSR | S_IWUSR)
|
||||||
|
#if defined(_WIN32) && defined(__MINGW32__)
|
||||||
|
#define REGISTRY_FILE_PERMS (S_IRUSR | S_IWUSR
|
||||||
|
#else
|
||||||
#define REGISTRY_FILE_PERMS (S_IRUSR | S_IWUSR | \
|
#define REGISTRY_FILE_PERMS (S_IRUSR | S_IWUSR | \
|
||||||
S_IRGRP | S_IWGRP | \
|
S_IRGRP | S_IWGRP | \
|
||||||
S_IROTH | S_IWOTH)
|
S_IROTH | S_IWOTH)
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
#define REGISTRY_DIR_PERMS (S_ISGID | \
|
#define REGISTRY_DIR_PERMS (S_ISGID | \
|
||||||
S_IREAD | S_IWRITE | S_IEXEC)
|
S_IREAD | S_IWRITE | S_IEXEC)
|
||||||
|
|
|
@ -319,7 +319,7 @@ get_time (const char *path, gboolean * is_dir)
|
||||||
return statbuf.st_ctime;
|
return statbuf.st_ctime;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#if defined(_MSC_VER) || defined(__MINGW32__)
|
||||||
#define xmkdir(dirname) _mkdir (dirname)
|
#define xmkdir(dirname) _mkdir (dirname)
|
||||||
#else
|
#else
|
||||||
#define xmkdir(dirname) mkdir (dirname, S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH)
|
#define xmkdir(dirname) mkdir (dirname, S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH)
|
||||||
|
|
Loading…
Reference in a new issue