change enum define to a typedef so that including header in multiple .m ...

this enum define will cause duplicated symbol link error if the header is imported in multiple .m files.
please repair this bug whit this patch.