Settings: Mark termination enables as an unaligned ptr

Unfortunately, the termination enables are not always at an aligned
boundary, and MSVC needs to taint the ptr type with __unaligned
in that case.
This commit is contained in:
Paul Hollinsky
2021-05-05 03:38:58 -04:00
parent 1bb114004e
commit 295ba490aa
10 changed files with 24 additions and 13 deletions
+10
View File
@@ -0,0 +1,10 @@
#ifndef __UNALIGNED_H_
#define __UNALIGNED_H_
#if defined(MSVC)
#define ICSNEO_UNALIGNED(x) __unaligned x
#else
#define ICSNEO_UNALIGNED(x) x
#endif
#endif