Changeset ed8c3b0 in tol


Ignore:
Timestamp:
Apr 7, 2016, 10:49:54 AM (11 years ago)
Author:
Pedro Gea <pgea@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
7e4ac7f
Parents:
17113dc
Message:

Refs #1920
Se usa readlink sólo cuando no es windows.
Véanse también [7290] y [7291].

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@7294 be4846ae-f051-483a-831f-b64e7d08527f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tol/init.cpp

    r17113dc red8c3b0  
    2424#endif
    2525
    26 #if HAVE_UNISTD_H
     26#ifndef WIN32
    2727#include <unistd.h>
    2828#endif
    … …  
    15521552  const char * ptr = calledProgram;
    15531553
    1554 #if HAVE_UNISTD_H
     1554#ifndef WIN32
    15551555  char realPath[1024];
    15561556  ssize_t r = readlink( ptr, realPath, 1024 );
    … …  
    15981598
    15991599  const char * argv0 = argv[0];
    1600  
    1601 #if HAVE_UNISTD_H
     1600
     1601#ifndef WIN32 
    16021602  char realPath[1024];
    16031603  ssize_t r = readlink( argv0, realPath, 1024 );
Note: See TracChangeset for help on using the changeset viewer.