Commit f17ae4a5 authored by Victor Lopez's avatar Victor Lopez

Fix nanos_omp_set_num_threads return type

gcc-8 requires an alias function to have the same exact return type
parent d8fb0abc
......@@ -45,7 +45,7 @@ NANOS_API_DECL(nanos_err_t, nanos_omp_set_implicit, ( nanos_wd_t uwd ));
NANOS_API_DECL(int, nanos_omp_get_max_threads, ( void ));
NANOS_API_DECL(int, nanos_omp_get_num_threads, ( void ));
NANOS_API_DECL(int, nanos_omp_get_thread_num, ( void ));
NANOS_API_DECL(int, nanos_omp_set_num_threads, ( int nthreads ));
NANOS_API_DECL(void, nanos_omp_set_num_threads, ( int nthreads ));
NANOS_API_DECL(nanos_ws_t, nanos_omp_find_worksharing, ( nanos_omp_sched_t kind ));
NANOS_API_DECL(nanos_err_t, nanos_omp_get_schedule, ( nanos_omp_sched_t *kind, int *modifier ));
......
......@@ -56,8 +56,8 @@ extern "C"
omp_set_num_threads(*nthreads);
}
int nanos_omp_set_num_threads ( int nthreads ) __attribute__ ((alias ("omp_set_num_threads")));
int nanos_omp_set_num_threads_ ( int nthreads ) __attribute__ ((alias ("omp_set_num_threads")));
void nanos_omp_set_num_threads ( int nthreads ) __attribute__ ((alias ("omp_set_num_threads")));
void nanos_omp_set_num_threads_ ( int nthreads ) __attribute__ ((alias ("omp_set_num_threads")));
NANOS_API_DEF(int, omp_get_thread_num, ( void ))
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment