Skip to content

Commit

Permalink
TOOLS: Work around a deque constructor not usable with CC
Browse files Browse the repository at this point in the history
The patch was provided by Laurent Blume (patch #3614504).
  • Loading branch information
criezy committed Jul 1, 2013
1 parent 9e3a0cc commit e35cf72
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scummvm-tools-cli.cpp
Expand Up @@ -40,8 +40,13 @@ int ToolsCLI::run(int argc, char *argv[]) {
return 2;
}

// If using Solaris Studio
#if defined(__sun) && !defined(__GNUC__)
std::deque<std::string> arguments; for (int i = 1; i < argc; i++) arguments.push_back(argv[i]);
#else
std::deque<std::string> arguments(argv, argv + argc);
arguments.pop_front(); // Pop our own name
#endif

ToolType type = TOOLTYPE_ALL;

Expand Down

0 comments on commit e35cf72

Please sign in to comment.