prog.c: In function 'funcaoExemplo':
prog.c:6:15: error: 'direction' undeclared (first use in this function)
if(var == direction.DOWN) printf("%d", RIGHT); //só para testar
^
prog.c:6:15: note: each undeclared identifier is reported only once for each function it appears in