]> granicus.if.org Git - gc/commitdiff
Fix compilation error in get_main_stack_base (Emscripten)
authorIvan Maidanski <ivmai@mail.ru>
Tue, 20 Jun 2017 18:22:53 +0000 (21:22 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 20 Jun 2017 18:22:53 +0000 (21:22 +0300)
Issue #163 (bdwgc).

* os_dep.c [!BEOS && !AMIGA && !OS2 && !MSWIN32 && !MSWINCE && !CYGWIN32
&& !GC_OPENBSD_THREADS && !STACKBOTTOM && !HEURISTIC1 && !HEURISTIC2
&& !LINUX_STACKBOTTOM && !FREEBSD_STACKBOTTOM] (GC_get_main_stack_base):
Set result to null if STACK_NOT_SCANNED (instead of #error).

os_dep.c

index 0f22b80e8ff38a6202c9719f65032ab1c2b14986..d941afcdd2b013a396022000a06405b2c7da5eb6 100644 (file)
--- a/os_dep.c
+++ b/os_dep.c
@@ -1252,7 +1252,7 @@ GC_INNER size_t GC_page_size = 0;
 #           endif
 #         endif
         }
-#     elif defined(CPPCHECK)
+#     elif defined(STACK_NOT_SCANNED) || defined(CPPCHECK)
         result = NULL;
 #     else
 #       error None of HEURISTIC* and *STACKBOTTOM defined!