mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Use __LP64__ to check for the 64-bit pointer type, and fix -Wundef.
This commit is contained in:
parent
51016cdfd7
commit
c7e7950d2d
1 changed files with 2 additions and 4 deletions
|
|
@ -109,12 +109,10 @@ static const struct ng_parse_type ng_vjc_config_type = {
|
|||
|
||||
/* Parse type for the 'last_cs' and 'cs_next' fields in struct slcompress,
|
||||
which are pointers converted to integer indices, so parse them that way. */
|
||||
#if _MACHINE_ARCH == i386
|
||||
#ifndef __LP64__
|
||||
#define NG_VJC_TSTATE_PTR_TYPE &ng_parse_uint32_type
|
||||
#elif _MACHINE_ARCH == alpha
|
||||
#define NG_VJC_TSTATE_PTR_TYPE &ng_parse_uint64_type
|
||||
#else
|
||||
#error Unspported _MACHINE_ARCH
|
||||
#define NG_VJC_TSTATE_PTR_TYPE &ng_parse_uint64_type
|
||||
#endif
|
||||
|
||||
/* Parse type for the 'cs_hdr' field in a struct cstate. Ideally we would
|
||||
|
|
|
|||
Loading…
Reference in a new issue