mirror of
https://github.com/DarkStore-3DS/Project_CTR.git
synced 2026-07-02 16:59:03 +00:00
[ctrtool] Fix compiling on Visual Studio.
This commit is contained in:
@@ -139,8 +139,13 @@ static const char *const syscall_list[NUM_SYSCALLS] =
|
||||
|
||||
void syscall_get_name(char *output, size_t size, unsigned int call_num)
|
||||
{
|
||||
#ifdef _MSC_VER
|
||||
typedef char StaticAssert[sizeof(syscall_list) / sizeof(syscall_list[0]) == NUM_SYSCALLS ? 1 : -1];
|
||||
#else
|
||||
_Static_assert(sizeof(syscall_list) / sizeof(syscall_list[0]) == NUM_SYSCALLS,
|
||||
"syscall table length mismatch");
|
||||
#endif
|
||||
|
||||
|
||||
if (size == 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user