mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 01:18:36 +02:00
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:
@@ -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
|
||||
Reference in New Issue
Block a user