[PATCH 1/6] vcomp: better stub for omp_get_num_threads
Dan Kegel
dank at kegel.com
Sat Sep 29 22:20:36 CDT 2012
---
dlls/vcomp/main.c | 6 ++++++
dlls/vcomp/vcomp.spec | 2 +-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/dlls/vcomp/main.c b/dlls/vcomp/main.c
index 1e51eef..170bd43 100644
--- a/dlls/vcomp/main.c
+++ b/dlls/vcomp/main.c
@@ -35,6 +35,12 @@ int CDECL omp_get_num_procs(void)
return 1;
}
+int CDECL omp_get_num_threads(void)
+{
+ TRACE("stub\n");
+ return 1;
+}
+
/* Time in seconds since "some time in the past" */
double CDECL omp_get_wtime(void)
{
diff --git a/dlls/vcomp/vcomp.spec b/dlls/vcomp/vcomp.spec
index 3e02bea..e53a475 100644
--- a/dlls/vcomp/vcomp.spec
+++ b/dlls/vcomp/vcomp.spec
@@ -94,7 +94,7 @@
@ stub omp_get_max_threads
@ stub omp_get_nested
@ cdecl omp_get_num_procs()
-@ stub omp_get_num_threads
+@ cdecl omp_get_num_threads()
@ stub omp_get_thread_num
@ stub omp_get_wtick
@ cdecl omp_get_wtime()
--
1.7.9.5
More information about the wine-patches
mailing list