diff --git a/src/osgPlugins/cfg/ConfigParser.cpp b/src/osgPlugins/cfg/ConfigParser.cpp index e4c8a92ee..001e08246 100644 --- a/src/osgPlugins/cfg/ConfigParser.cpp +++ b/src/osgPlugins/cfg/ConfigParser.cpp @@ -2261,7 +2261,7 @@ bool CameraConfig::parseFile( const std::string &file ) execlp( cpp_path, "cpp", "-P", 0L ); else */ - execlp( cpp_path, "cpp", "-P", fileName.c_str(), NULL ); + execlp( cpp_path, "cpp", "-P", fileName.c_str(), (char *)NULL ); // This should not execute unless an error happens perror( "execlp" );