Changed enum to support pre-C++11 compilers.