mirror of
https://github.com/DarkStore-3DS/Project_CTR.git
synced 2026-12-06 03:07:20 +00:00
[ctrtool] Fix compiling on Visual Studio.
This commit is contained in:
1 parent
b53b2ce8fe
commit
cbfa5398a9
1 file changed
+5
@@ -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