Skip to content

Commit

Permalink
Merge pull request #60 from thewtex/windows-getenv
Browse files Browse the repository at this point in the history
COMP: Avoid getenv with Visual Studio
  • Loading branch information
thewtex authored Dec 11, 2019
2 parents e3f2dac + 983ba41 commit 9c3a20d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/itkSCIFIOImageIO.cxx.in
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include "itkSCIFIOImageIO.h"
#include "itkIOCommon.h"
#include "itkMetaDataObject.h"
#include "itksys/SystemTools.hxx"

#include <cstdio>
#include <cstdlib>
Expand Down Expand Up @@ -55,7 +56,7 @@ namespace

std::string getEnv( const char* name )
{
char* result = getenv(name);
const char* result = itksys::SystemTools::GetEnv(name);
if ( result == NULL )
{
return "";
Expand Down

0 comments on commit 9c3a20d

Please sign in to comment.