mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-21 03:13:42 +08:00
Revise the arm test per https://github.com/Unidata/netcdf-c/issues/1854#issuecomment-711983794
This commit is contained in:
parent
73c195e107
commit
26bf8186f3
@ -201,13 +201,14 @@ extern int nc__dap4(void);
|
||||
/* Unclear which macros are defined for which compilers.
|
||||
see: https://sourceforge.net/p/predef/wiki/Architectures/
|
||||
*/
|
||||
#if defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_6__)
|
||||
#if defined(__arm__) && __ARM_ARCH < 8
|
||||
static d4size_t
|
||||
GETCOUNTER(void* p)
|
||||
{COUNTERTYPE v; memcpy(v,p,sizeof(v)); return (d4size_t)v;}
|
||||
#else
|
||||
#define GETCOUNTER(p) ((d4size_t)*((COUNTERTYPE*)(p)))
|
||||
#endif
|
||||
#endif /*defined(__arm__) && __ARM_ARCH < 8*/
|
||||
|
||||
#define SKIPCOUNTER(p) {p=INCR(p,COUNTERSIZE);}
|
||||
|
||||
#undef PUSH
|
||||
|
Loading…
Reference in New Issue
Block a user