开始设计
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
#ifndef INCLUDED_C_COMPILER_MSVC_H
|
||||
#define INCLUDED_C_COMPILER_MSVC_H
|
||||
|
||||
#if _MSC_VER >= 1920
|
||||
// Visual Studio 2019 或更新版本
|
||||
#elif _MSC_VER >= 1910
|
||||
// Visual Studio 2017
|
||||
#elif _MSC_VER >= 1900
|
||||
// Visual Studio 2015
|
||||
#endif
|
||||
|
||||
#define C_STATIC_FORCE_INLINE static inline __forceinline
|
||||
|
||||
#define C_PACKED_STRUCT(X) __pragma(pack(push, 1)) struct X __pragma(pack(pop))
|
||||
|
||||
#endif /*INCLUDED_C_COMPILER_MSVC_H*/
|
||||
Reference in New Issue
Block a user