Simplify Asset Headers (#2474)
This commit is contained in:
10
soh/include/align_asset_macro.h
Normal file
10
soh/include/align_asset_macro.h
Normal file
@@ -0,0 +1,10 @@
|
||||
#ifndef ALIGN_ASSET_MACRO_H
|
||||
#define ALIGN_ASSET_MACRO_H
|
||||
|
||||
#if defined(_WIN32)
|
||||
#define ALIGN_ASSET(x) __declspec(align(x))
|
||||
#else
|
||||
#define ALIGN_ASSET(x) __attribute__((aligned (x)))
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user