Advertisement
Guest User

Untitled

a guest
Sep 10th, 2023
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 KB | None | 0 0
  1. --- src/Types.h 2021-12-05 13:24:31.000000000 +0100
  2. +++ src/Types.h 2023-09-10 12:25:38.000000000 +0200
  3. @@ -94,13 +94,17 @@
  4. * Backwards compatibility with emule.
  5. * Note that the int* types are indeed unsigned.
  6. */
  7. -typedef uint8_t int8;
  8. +//typedef uint8_t int8;
  9. +typedef __haiku_int8 int8;
  10. typedef uint8_t uint8;
  11. -typedef uint16_t int16;
  12. +//typedef uint16_t int16;
  13. +typedef __haiku_int16 int16;
  14. typedef uint16_t uint16;
  15. -typedef uint32_t int32;
  16. +//typedef uint32_t int32;
  17. +typedef __haiku_int32 int32;
  18. typedef uint32_t uint32;
  19. -typedef uint64_t int64;
  20. +//typedef uint64_t int64;
  21. +typedef __haiku_int64 int64;
  22. typedef uint64_t uint64;
  23. typedef int8_t sint8;
  24. typedef int16_t sint16;
  25.  
  26. --- src/amule.cpp 2021-12-05 13:24:31.000000000 +0100
  27. +++ src/amule.cpp 2023-09-10 20:33:54.000000000 +0200
  28. @@ -391,7 +391,7 @@
  29. #endif
  30.  
  31. // Handle uncaught exceptions
  32. - InstallMuleExceptionHandler();
  33. +// InstallMuleExceptionHandler();
  34.  
  35. if (!InitCommon(AMULE_APP_BASE::argc, AMULE_APP_BASE::argv)) {
  36. return false;
  37. --- src/libs/common/MuleDebug.cpp 2021-12-05 13:24:31.000000000 +0100
  38. +++ src/libs/common/MuleDebug.cpp 2023-09-09 21:09:09.000000000 +0200
  39. @@ -67,7 +67,7 @@
  40. // Revert to the original exception handler, to avoid
  41. // infinate recursion, in case something goes wrong in
  42. // this function.
  43. - std::set_terminate(std::abort);
  44. +// std::set_terminate(std::abort);
  45.  
  46. #ifdef HAVE_CXXABI
  47. std::type_info *t = __cxxabiv1::__cxa_current_exception_type();
  48. @@ -108,10 +108,10 @@
  49. }
  50.  
  51.  
  52. -void InstallMuleExceptionHandler()
  53. -{
  54. - std::set_terminate(OnUnhandledException);
  55. -}
  56. +//void InstallMuleExceptionHandler()
  57. +//{
  58. +// std::set_terminate(OnUnhandledException);
  59. +//}
  60.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement