0001-Fixes-MONO_PROFILE_ENTER_LEAVE-undeclared.patch 1001 B

12345678910111213141516171819202122232425262728
  1. From c1b9bd4214b78dc426bc6e6a07c23a8ab4ab50ea Mon Sep 17 00:00:00 2001
  2. From: Jordi Mas <jmas@softcatala.org>
  3. Date: Tue, 12 Mar 2019 12:24:19 +0100
  4. Subject: [PATCH] Fixes MONO_PROFILE_ENTER_LEAVE undeclared when compiling with
  5. newer versions of Mono (#266)
  6. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  7. [Retrieved from:
  8. https://github.com/mono/gtk-sharp/commit/c1b9bd4214b78dc426bc6e6a07c23a8ab4ab50ea]
  9. ---
  10. gtk/gui-thread-check/profiler/gui-thread-check.c | 4 ++++
  11. 1 file changed, 4 insertions(+)
  12. diff --git a/gtk/gui-thread-check/profiler/gui-thread-check.c b/gtk/gui-thread-check/profiler/gui-thread-check.c
  13. index 11838e3b0..9f45fe6b2 100644
  14. --- a/gtk/gui-thread-check/profiler/gui-thread-check.c
  15. +++ b/gtk/gui-thread-check/profiler/gui-thread-check.c
  16. @@ -86,6 +86,10 @@ simple_method_enter (MonoProfiler *prof, MonoMethod *method)
  17. }
  18. }
  19. +#ifndef MONO_PROFILE_ENTER_LEAVE
  20. +#define MONO_PROFILE_ENTER_LEAVE (1 << 12)
  21. +#endif
  22. +
  23. void
  24. mono_profiler_startup (const char *desc)
  25. {