compilation issue

Changing if to ifdef
Merge pull request #149 from shivashis/master

Fixed _BIG_ENDIAN check on Solaris Sparc - thanks to shivashis