Author: al
Date: 2010-01-31 16:27:37 +0100 (Sun, 31 Jan 2010)
New Revision: 3151

Modified:
   trunk/librawstudio/rs-utils.c
Log:
Making sure it compiles in windows.

Modified: trunk/librawstudio/rs-utils.c
===================================================================
--- trunk/librawstudio/rs-utils.c       2010-01-31 15:20:00 UTC (rev 3150)
+++ trunk/librawstudio/rs-utils.c       2010-01-31 15:27:37 UTC (rev 3151)
@@ -691,7 +691,12 @@
 #endif
        gchar *buffer = g_new0(gchar, path_max);
 
-       gchar *ret = realpath(path, buffer);
+       gchar *ret = NULL;
+#ifdef WIN32
+       GetFullPathName(path, path_max, buffer, &ret);
+#else
+       ret = realpath(path, buffer);
+#endif
 
        if (ret == NULL)
                g_free(buffer);


_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit

Reply via email to