My bad...I forgot to #include <default.c> -which includes litec.h where RECT is defined- before <windows.h>