|
|
@@ -12,7 +12,7 @@ namespace oxygine
|
|
|
|
|
|
#define makefourcc(a,b,c,d) ( ((unsigned int)a) | (((unsigned int)b)<< 8) | (((unsigned int)c)<<16) | (((unsigned int)d)<<24))
|
|
|
|
|
|
-#if __cplusplus > 199711L
|
|
|
+#ifdef OX_HAS_CPP11
|
|
|
inline int error_eventID_should_be_size_of_4_chars(int x) { return x; }
|
|
|
constexpr size_t constStringLength(const char* str) { return (*str == 0) ? 0 : constStringLength(str + 1) + 1; }
|
|
|
constexpr int EventIDc11(const char *str) { return constStringLength(str) == 4 ? makefourcc(str[0], str[1], str[2], str[3]) : error_eventID_should_be_size_of_4_chars(0); }
|