(svn r26838) -Fix (r26831): attempt to make MSVC like the code again
This commit is contained in:
7
src/3rdparty/squirrel/squirrel/sqcompiler.h
vendored
7
src/3rdparty/squirrel/squirrel/sqcompiler.h
vendored
@@ -71,7 +71,12 @@ struct SQVM;
|
|||||||
#define TK_ENUM 323
|
#define TK_ENUM 323
|
||||||
#define TK_CONST 324
|
#define TK_CONST 324
|
||||||
|
|
||||||
|
/* MSVC doesn't like NORETURN for function prototypes, but we kinda need it for GCC. */
|
||||||
|
#if defined(_MSC_VER)
|
||||||
|
typedef void(*CompilerErrorFunc)(void *ud, const SQChar *s);
|
||||||
|
#else
|
||||||
typedef NORETURN void(*CompilerErrorFunc)(void *ud, const SQChar *s);
|
typedef NORETURN void(*CompilerErrorFunc)(void *ud, const SQChar *s);
|
||||||
|
#endif
|
||||||
|
|
||||||
bool Compile(SQVM *vm, SQLEXREADFUNC rg, SQUserPointer up, const SQChar *sourcename, SQObjectPtr &out, bool raiseerror, bool lineinfo);
|
bool Compile(SQVM *vm, SQLEXREADFUNC rg, SQUserPointer up, const SQChar *sourcename, SQObjectPtr &out, bool raiseerror, bool lineinfo);
|
||||||
#endif //_SQCOMPILER_H_
|
#endif //_SQCOMPILER_H_
|
||||||
|
Reference in New Issue
Block a user