Update gregorian.cpp

"sun" has been redefined, when this is a vital define for detecting Solaris. Renamed variable to sunday and removed redefine.