udpate to gint 2.4.0

This commit is contained in:
Lephenixnoir 2021-04-27 15:47:41 +02:00
parent fd90842b82
commit c0d5b053d9
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
2 changed files with 3 additions and 2 deletions

View File

@ -1,7 +1,7 @@
# Build system for the libprof library for gint
cmake_minimum_required(VERSION 3.16)
project(libprof VERSION 2.2.1 LANGUAGES C)
project(libprof VERSION 2.4.0 LANGUAGES C)
find_package(Gint 2.2.1 REQUIRED)
configure_file(libprof.h libprof.h)

View File

@ -22,7 +22,8 @@ int prof_init(void)
int timer = -1;
for(int t = 2; t >= 0 && timer == -1; t--)
{
timer = timer_setup(t | TIMER_Pphi_4, 0xffffffff, callback);
timer = timer_configure(t | TIMER_Pphi_4, 0xffffffff,
GINT_CALL(callback));
}
if(timer == -1)
{