Changeset 811

Show
Ignore:
Timestamp:
01/17/10 16:04:59 (8 months ago)
Author:
sience
Message:

-small fix for windows mkdir, rmdir support

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/lugre/src/lugre_shell.cpp

    r807 r811  
    1414// TODO : #elseif LINUX or something like that 
    1515        #include <windows.h> 
     16        #include <direct.h> // mkdir, rmdir 
    1617#else 
    1718        // this is the linux code 
     
    4849        //~ printf("rob_mkdir(%s,0x%x)\n",path,perm); 
    4950        #ifdef WIN32 
    50         return mkdir(path); // simply comment out for win if it causes trouble during compile, currently (15.01.2010) only needed for iris install using home path 
     51        return _mkdir(path); // http://msdn.microsoft.com/en-us/library/2fkk4dzw.aspx, currently (15.01.2010) only needed for iris install using home path 
    5152        #else 
    5253        return mkdir(path,(mode_t)perm); 
     
    5758int     rob_rmdir                       (const char* path) { 
    5859        #ifdef WIN32 
    59         return rmdir(path); // simply comment out for win if it causes trouble during compile, currently (15.01.2010) only needed for iris install using home path 
     60        return _rmdir(path); // http://msdn.microsoft.com/en-us/library/2fkk4dzw.aspx, currently (15.01.2010) only needed for iris install using home path 
    6061        #else 
    6162        return rmdir(path);