From 9ba01e0246b4edc832b864b35867fa54bde3876a Mon Sep 17 00:00:00 2001
From: Dan Kegel <dank@kegel.com>
Date: Sat, 29 Sep 2012 20:20:36 -0700
Subject: [PATCH] vcomp: Better stub for omp_get_num_threads.

---
 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 1e51eef071e..170bd4323c6 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 3e02bea9ca7..e53a475e6a7 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()
-- 
GitLab