summaryrefslogtreecommitdiff
path: root/gobject-introspection
diff options
context:
space:
mode:
authorJuerg Billeter <j@bitron.ch>2008-03-10 23:50:48 +0000
committerJürg Billeter <juergbi@src.gnome.org>2008-03-10 23:50:48 +0000
commitd5903c0c2a9f5beb7b1b2bf459ff4911777eeb81 (patch)
treeb2f97df79eb42e4a5574a92546ae3aad7a5780b6 /gobject-introspection
parent1ce8744b32f60bb589b3d31c3de72bd84e253f69 (diff)
downloadvala-d5903c0c2a9f5beb7b1b2bf459ff4911777eeb81.tar.gz
add missing file
2008-03-11 Juerg Billeter <j@bitron.ch> * gobject-introspection/grealpath.h: add missing file svn path=/trunk/; revision=1121
Diffstat (limited to 'gobject-introspection')
-rw-r--r--gobject-introspection/grealpath.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/gobject-introspection/grealpath.h b/gobject-introspection/grealpath.h
new file mode 100644
index 000000000..ca88190bc
--- /dev/null
+++ b/gobject-introspection/grealpath.h
@@ -0,0 +1,20 @@
+#ifndef __G_REALPATH_H__
+#define __G_REALPATH_H__
+
+/**
+ * g_realpath:
+ *
+ * this should be a) filled in for win32 and b) put in glib...
+ */
+
+static inline gchar*
+g_realpath (const char *path)
+{
+ char buffer [PATH_MAX];
+ if (realpath(path, buffer))
+ return g_strdup(buffer);
+ else
+ return NULL;
+}
+
+#endif