Support MSVC.
This commit is contained in:
@@ -30,6 +30,10 @@
|
|||||||
#include "compress.h"
|
#include "compress.h"
|
||||||
#include "mem.h"
|
#include "mem.h"
|
||||||
|
|
||||||
|
#if (ACC_CC_MSC)
|
||||||
|
# pragma warning(disable: 4456) // -Wno-shadow
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
void lzma_compress_config_t::reset()
|
void lzma_compress_config_t::reset()
|
||||||
{
|
{
|
||||||
|
|||||||
+6
-1
@@ -44,7 +44,7 @@
|
|||||||
#define ACC_CFG_USE_NEW_STYLE_CASTS 1
|
#define ACC_CFG_USE_NEW_STYLE_CASTS 1
|
||||||
#endif
|
#endif
|
||||||
#include "miniacc.h"
|
#include "miniacc.h"
|
||||||
#if !(ACC_CC_CLANG || ACC_CC_GNUC)
|
#if !(ACC_CC_CLANG || ACC_CC_GNUC || ACC_CC_MSC)
|
||||||
// other compilers may work, but we're NOT interested into supporting them
|
// other compilers may work, but we're NOT interested into supporting them
|
||||||
# error "only clang and gcc are officially supported"
|
# error "only clang and gcc are officially supported"
|
||||||
#endif
|
#endif
|
||||||
@@ -244,8 +244,13 @@ typedef unsigned char upx_byte;
|
|||||||
//
|
//
|
||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
|
#if (ACC_CC_MSC)
|
||||||
|
#define __packed_struct(s) struct s {
|
||||||
|
#define __packed_struct_end() };
|
||||||
|
#else
|
||||||
#define __packed_struct(s) __acc_struct_packed(s)
|
#define __packed_struct(s) __acc_struct_packed(s)
|
||||||
#define __packed_struct_end() __acc_struct_packed_end()
|
#define __packed_struct_end() __acc_struct_packed_end()
|
||||||
|
#endif
|
||||||
|
|
||||||
#define UNUSED(var) ACC_UNUSED(var)
|
#define UNUSED(var) ACC_UNUSED(var)
|
||||||
#define COMPILE_TIME_ASSERT(e) ACC_COMPILE_TIME_ASSERT(e)
|
#define COMPILE_TIME_ASSERT(e) ACC_COMPILE_TIME_ASSERT(e)
|
||||||
|
|||||||
Reference in New Issue
Block a user