Moved return -1 before of #endif.