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. 126.96.36.199, Sec. 6.8.1
H&S Sec. 7.11.1 p. 225