spa: fixes for dereferencing pointer to incomplete type in __typeof__ for gcc version < 10
before gcc 10 its not supporting pointer dereferencing in typeof. so made changes according to that. Fixes #3375 (closed)
before gcc 10 its not supporting pointer dereferencing in typeof. so made changes according to that. Fixes #3375 (closed)