change pragma processing to correspond with documentation and behaviour of C and C++ compilers are same