grim/gplate

f05734c47587
Parents 28814248ca3a
Children e0a7da72459f
some win32 compatibility stuff...
--- a/gplate/variables/gplate-file-variable.c Thu Oct 02 02:03:25 2008 -0500
+++ b/gplate/variables/gplate-file-variable.c Thu Oct 02 02:34:26 2008 -0500
@@ -85,8 +85,13 @@
filename = gplate_variable_get_value(filename_var);
g_return_if_fail(filename);
+#ifdef _WIN32
+ if(g_stat(filename, &st) != 0)
+ return;
+#else
if(g_lstat(filename, &st) != 0)
return;
+#endif /* _WIN32 */
gplate_collection_add_integer(collection, "dev", st.st_dev);
gplate_collection_add_integer(collection, "inode", st.st_ino);
@@ -96,8 +101,10 @@
gplate_collection_add_integer(collection, "gid", st.st_gid);
gplate_collection_add_integer(collection, "rdev", st.st_rdev);
gplate_collection_add_integer(collection, "size", st.st_size);
+#ifndef _WIN32
gplate_collection_add_integer(collection, "blocksize", st.st_blksize);
gplate_collection_add_integer(collection, "blocks", st.st_blocks);
+#endif /* _WIN32 */
gplate_collection_add_integer(collection, "atime", st.st_atime);
gplate_collection_add_integer(collection, "mtime", st.st_mtime);
gplate_collection_add_integer(collection, "ctime", st.st_ctime);