import
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
#ifndef INCLUDED_OS_ALIGN_H
|
||||
#define INCLUDED_OS_ALIGN_H
|
||||
|
||||
#ifndef OS_ALIGN_SIZE
|
||||
#define OS_ALIGN_SIZE sizeof(os_align_t)
|
||||
#endif
|
||||
|
||||
typedef union {
|
||||
#if defined(OS_ALIGN_MAX)
|
||||
unsigned char pad[OS_ALIGN_MAX];
|
||||
#else
|
||||
int i;
|
||||
long l;
|
||||
long long ll;
|
||||
long* lp;
|
||||
void* p;
|
||||
void (*fp)(void);
|
||||
float f;
|
||||
double d;
|
||||
long double ld;
|
||||
#endif
|
||||
}os_align_t;
|
||||
|
||||
|
||||
#endif /*INCLUDED_OS_ALIGN_H*/
|
||||
Reference in New Issue
Block a user