Q: Does the sizeof operator work in preprocessor #if directives?
A: No. Preprocessing happens during an earlier phase of compilation, before type names have been parsed. Instead of sizeof, consider using the predefined constants in ANSI's <limits.h>, if applicable, or perhaps a ``configure'' script. (Better yet, try to write code which is inherently insensitive to type sizes; see also questions 1.1 and 1.3.)
Additional links: nice explanation by Chris Torek
ISO Sec. 22.214.171.124, Sec. 6.8.1
H&S Sec. 7.11.1 p. 225