Move #pragma out of functions, gcc on HP-UX does not like it