libobs/util: Add macro to specify arch. bits

This commit is contained in:
jp9000
2015-07-14 18:04:15 -07:00
parent 1a822f9a1e
commit 5d33c777c2

View File

@@ -146,6 +146,24 @@ EXPORT int os_copyfile(const char *file_in, const char *file_out);
#endif
#endif
#ifdef __APPLE__
# define ARCH_BITS 64
#else
# ifdef _WIN32
# ifdef _WIN64
# define ARCH_BITS 64
# else
# define ARCH_BITS 32
# endif
# else
# ifdef __LP64__
# define ARCH_BITS 64
# else
# define ARCH_BITS 32
# endif
# endif
#endif
#ifdef __cplusplus
}
#endif