Files
semi-libc/include/sys/reg.h
T
Rich Felker e709a6f07a sys/reg.h: derive __WORDSIZE from __LONG_MAX
this removes an otherwise-unnecessary bits header from most archs,
replacing it with an empty generic version.
2024-05-07 09:08:31 -04:00

19 lines
243 B
C

#ifndef _SYS_REG_H
#define _SYS_REG_H
#include <limits.h>
#include <unistd.h>
#include <bits/alltype.h>
#undef __WORDSIZE
#if __LONG_MAX == 0x7fffffffL
#define __WORDSIZE 32
#else
#define __WORDSIZE 64
#endif
#include <bits/reg.h>
#endif