Ticket #9482: 0002-avoid-deque-constructor-for-studio.patch

File 0002-avoid-deque-constructor-for-studio.patch, 464 bytes (added by SF/lblume, 11 years ago)

Patch to avoid a deque construction on Solaris when using CC (corrected)

  • scummvm-tools-cli.cpp

    a b  
    4040                return 2;
    4141        }
    4242
     43// If using Solaris Studio
     44#if defined(__sun) && !defined(__GNUC__)
     45        std::deque<std::string> arguments; for (int i = 1; i < argc; i++) arguments.push_back(argv[i]);
     46#else
    4347        std::deque<std::string> arguments(argv, argv + argc);
    4448        arguments.pop_front(); // Pop our own name
     49#endif
    4550
    4651        ToolType type = TOOLTYPE_ALL;
    4752