pstdint: check for __cplusplus since __STDC_VERSION__ isn't defined in C++

Signed-off-by: Steven Noonan <steven@uplinklabs.net>