[PATCH 5/6] vcomp: better stubs for omp_get_nested, omp_set_nested

Dan Kegel dank at kegel.com
Sat Sep 29 22:20:40 CDT 2012


---
 dlls/vcomp/main.c     |   11 +++++++++++
 dlls/vcomp/vcomp.spec |    4 ++--
 2 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/dlls/vcomp/main.c b/dlls/vcomp/main.c
index 1f80563..b758fbd 100644
--- a/dlls/vcomp/main.c
+++ b/dlls/vcomp/main.c
@@ -41,6 +41,12 @@ int CDECL omp_get_max_threads(void)
     return 1;
 }
 
+int CDECL omp_get_nested(void)
+{
+    TRACE("stub\n");
+    return 0;
+}
+
 int CDECL omp_get_num_procs(void)
 {
     TRACE("stub\n");
@@ -64,6 +70,11 @@ void CDECL omp_set_dynamic(int val)
     TRACE("(%d): stub\n", val);
 }
 
+void CDECL omp_set_nested(int nested)
+{
+    TRACE("(%d): stub\n", nested);
+}
+
 void CDECL omp_set_num_threads(int num_threads)
 {
     TRACE("(%d): stub\n", num_threads);
diff --git a/dlls/vcomp/vcomp.spec b/dlls/vcomp/vcomp.spec
index ce66c52..1b58b25 100644
--- a/dlls/vcomp/vcomp.spec
+++ b/dlls/vcomp/vcomp.spec
@@ -92,7 +92,7 @@
 @ stub omp_destroy_nest_lock
 @ cdecl omp_get_dynamic()
 @ cdecl omp_get_max_threads()
-@ stub omp_get_nested
+@ cdecl omp_get_nested()
 @ cdecl omp_get_num_procs()
 @ cdecl omp_get_num_threads()
 @ stub omp_get_thread_num
@@ -104,7 +104,7 @@
 @ cdecl omp_set_dynamic(long)
 @ stub omp_set_lock
 @ stub omp_set_nest_lock
-@ stub omp_set_nested
+@ cdecl omp_set_nested(long)
 @ cdecl omp_set_num_threads(long)
 @ stub omp_test_lock
 @ stub omp_test_nest_lock
-- 
1.7.9.5




More information about the wine-patches mailing list