mirror of
https://github.com/onyx-and-iris/vmrcli.git
synced 2024-11-15 17:40:56 +00:00
add IS_64_BIT macro to interface.h
This commit is contained in:
parent
955edb781c
commit
9388844acb
@ -10,6 +10,8 @@
|
||||
|
||||
#include "VoicemeeterRemote.h"
|
||||
|
||||
#define IS_64_BIT sizeof(void *) == 8
|
||||
|
||||
PT_VMR create_interface();
|
||||
|
||||
#endif /* __IVMR_H__ */
|
@ -81,7 +81,7 @@ static long initialize_dll_interfaces(PT_VMR vmr)
|
||||
return -100;
|
||||
}
|
||||
// use right dll according to O/S type
|
||||
if (sizeof(void *) == 8)
|
||||
if (IS_64_BIT)
|
||||
strncat(dll_fullpath, DLL64_NAME, DLL_FULLPATH_SZ - strlen(DLL64_NAME) - 1);
|
||||
else
|
||||
strncat(dll_fullpath, DLL32_NAME, DLL_FULLPATH_SZ - strlen(DLL32_NAME) - 1);
|
||||
|
@ -240,11 +240,11 @@ static void usage()
|
||||
static enum kind set_kind(char *kval)
|
||||
{
|
||||
if (strcmp(kval, "basic") == 0)
|
||||
return sizeof(void *) == 8 ? BASICX64 : BASIC;
|
||||
return IS_64_BIT ? BASICX64 : BASIC;
|
||||
else if (strcmp(kval, "banana") == 0)
|
||||
return sizeof(void *) == 8 ? BANANAX64 : BANANA;
|
||||
return IS_64_BIT ? BANANAX64 : BANANA;
|
||||
else if (strcmp(kval, "potato") == 0)
|
||||
return sizeof(void *) == 8 ? POTATOX64 : POTATO;
|
||||
return IS_64_BIT ? POTATOX64 : POTATO;
|
||||
else
|
||||
return UNKNOWN;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user