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.
This commit is contained in:
1 parent
29b216b2f2
commit
e709a6f07a
19 files changed
+9
-42
No files matched your search
@@ -4,6 +4,15 @@
|
||||
#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
|
||||
Reference in new issue
Block a user