fixed code a bit for a legacy platform and compiler

This commit is contained in:
hyunghwan.chung
2018-01-17 02:57:03 +00:00
parent 0ba4764c18
commit a7b0814551
2 changed files with 8 additions and 2 deletions

View File

@ -119,6 +119,8 @@ static MOO_INLINE const char* proc_state_to_string (int state)
#if defined(__DOS__) && (defined(_INTELC32_) || (defined(__WATCOMC__) && (__WATCOMC__ <= 1000)))
/* the old intel c code builder doesn't support __FUNCTION__ */
# define __PRIMITIVE_NAME__ "<<primitive>>"
#elif defined(_SCO_DS)
# define __PRIMITIVE_NAME__ "<<primitive>>"
#else
# define __PRIMITIVE_NAME__ (&__FUNCTION__[0])
#endif