Update operations.cpp

Added missing check for Solaris 10 which can declare __sun as well.
Merge pull request #1 from chris5287/patch-1

Update operations.cpp