summaryrefslogtreecommitdiff
path: root/gio/src/fileinfo.hg
diff options
context:
space:
mode:
Diffstat (limited to 'gio/src/fileinfo.hg')
-rw-r--r--gio/src/fileinfo.hg11
1 files changed, 10 insertions, 1 deletions
diff --git a/gio/src/fileinfo.hg b/gio/src/fileinfo.hg
index 9540673a..f77b4a3a 100644
--- a/gio/src/fileinfo.hg
+++ b/gio/src/fileinfo.hg
@@ -29,7 +29,16 @@ _PINCLUDE(glibmm/private/object_p.h)
namespace Gio
{
-_WRAP_ENUM(FileType, GFileType, NO_GTYPE)
+// Rename FILE_TYPE_UNKNOWN to FILE_TYPE_NOT_KNOWN because the former is a
+// define in a Windows header (winbase.h, included from windows.h).
+_WRAP_ENUM(FileType, GFileType, NO_GTYPE, s#FILE_TYPE_UNKNOWN#FILE_TYPE_NOT_KNOWN#)
+
+// Provide FILE_TYPE_UNKNOWN for backwards compatibility.
+#ifndef DOXYGEN_SHOULD_SKIP_THIS
+#ifndef FILE_TYPE_UNKNOWN
+const FileType FILE_TYPE_UNKNOWN = FILE_TYPE_NOT_KNOWN;
+#endif
+#endif
//TODO: attribute strings