i'm a bit rusty on xc8 and as dave says this is a pbp forum not C
but for what its worth
Code:
/* 
 * File: TestXC8.c
 * Author: Dymentional
 *
 * Created on April 25, 2016, 2:11 PM
 */



 #include <xc.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <pic16f1519.h>  not sure this is going to help , if project set up correctly in mplabx this is unnecessary
 #include <htc.h>
#include <TestXC8.h> // will help

 #define led1 PORTB.F0 //RB0   ?????????????????

 /*
 * 
 */
 int main(int argc, char** argv) {

 OSCCON = 0x72; //Configure le registre OSCCON en oscillateur interne
 PORTB = 0b11111111; //Init des pattes du µcontroleur
 TRISB = 0b11111110; //Bit 0 du Port B en sortie


 /*while (1)
 { 
 LATBbits.LATB0 = ~LATBbits.LATB0; //crée une boucle de 1s
 for (int countDelay=0; countDelay <20; countDelay ++)__delay_ms(50);
 } 
 }*/he
 while(1)n I 
 {
 //Delay ~1 second (8MHz Internal Clock)
 __delay_ms(8000000); //specify clock cycles directly   no way 
// delay_ms is delay milliseconds not clockcycles
// the function prototype uses ints  which limits range to much less than 8000000,from memory  its less than 1000 ms depending on clock }

 }