--- libgda-5.2.2-orig/libgda/sql-parser/lemon.c	2013-10-19 14:35:16.000000000 +0200
+++ libgda-5.2.2/libgda/sql-parser/lemon.c	2014-08-17 17:46:17.097616600 +0200
@@ -2732,11 +2732,7 @@
   filename = lemp->filename;
   if (local_out_dir) {
     char *ptr;
-#ifdef __WIN32__
-    for (ptr = lemp->filename + strlen (lemp->filename) - 1; (ptr > lemp->filename) && (*ptr != '\\'); ptr--);
-#else
     for (ptr = lemp->filename + strlen (lemp->filename) - 1; (ptr > lemp->filename) && (*ptr != '/'); ptr--);
-#endif
     if (ptr > lemp->filename)
      filename = ptr + 1;
   }
@@ -3019,11 +3015,7 @@
   char *path,*cp;
   char c;
 
-#ifdef __WIN32__
-  cp = strrchr(argv0,'\\');
-#else
   cp = strrchr(argv0,'/');
-#endif
   if( cp ){
     c = *cp;
     *cp = 0;
