fix fullpath on linux
Allan CORNET [Wed, 15 Apr 2009 13:56:21 +0000 (15:56 +0200)]
scilab/modules/fileio/src/c/filesmanagement.c

index 238f991..a66df33 100644 (file)
@@ -254,8 +254,11 @@ int GetIdFromFilename(char *filename)
        {
                char fullpath[PATH_MAX*4];
                int i=0;
-
+               #ifdef _MSC_VER
                if( _fullpath( fullpath, filename, PATH_MAX*4 ) == NULL )
+               #else
+               if( realpath( filename,fullpath ) == NULL )
+               #endif
                {
                        /* if we are a problem */
                        strcpy(fullpath,filename);