Ignore:
Timestamp:
Apr 21, 2011, 1:36:15 PM (13 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
ae85a3d8eb93a191e0a73a7e20df16f676bd1e8e
Parents:
01c1d069f5dba6492844972482dfe1d144a97800
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-04-21 13:36:15+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:31:24+01:00
Message:
ADD: feInitResources can use 'program_invocation_name' instead of argv[0]
ADD: executables should run feInitResources at the start
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/resources/feResource.cc

    r01c1d0 r59a62bd  
    1414#include <misc/auxiliary.h>
    1515
    16 #include <resources/feResource.h>
    17 
     16#include "feResource.h"
     17
     18
     19// the following is needed due to 'program_invocation_name'
     20#define _GNU_SOURCE
     21#include <errno.h>
    1822
    1923
     
    175179void feInitResources(char* argv0)
    176180{
     181  if (argv0==NULL)
     182  {
     183    argv0 = program_invocation_name;
     184  }
     185 
    177186#if defined(ix86_Win) && defined(__GNUC__)
    178187  if (cygwin32_posix_path_list_p (getenv("PATH")))
Note: See TracChangeset for help on using the changeset viewer.