Don't define __LC_LAST here. Include <locale.h> instead.