This commit is contained in:
2026-05-19 11:49:22 +08:00
commit add7af4222
96 changed files with 8635 additions and 0 deletions
+25
View File
@@ -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*/