[PATCH 6/6] vcomp: better stub for omp_get_thread_num

Dan Kegel dank at kegel.com
Sat Sep 29 22:20:41 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 b758fbd..5faf0a1 100644
--- a/dlls/vcomp/main.c
+++ b/dlls/vcomp/main.c
@@ -59,6 +59,12 @@ int CDECL omp_get_num_threads(void)
     return 1;
 }
 
+int CDECL omp_get_thread_num(void)
+{
+    TRACE("stub\n");
+    return 0;
+}
+
 /* 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 1b58b25..41b57fb 100644
--- a/dlls/vcomp/vcomp.spec
+++ b/dlls/vcomp/vcomp.spec
@@ -95,7 +95,7 @@
 @ cdecl omp_get_nested()
 @ cdecl omp_get_num_procs()
 @ cdecl omp_get_num_threads()
-@ stub omp_get_thread_num
+@ cdecl omp_get_thread_num()
 @ stub omp_get_wtick
 @ cdecl omp_get_wtime()
 @ stub omp_in_parallel
-- 
1.7.9.5




More information about the wine-patches mailing list