setjmpex.h 517 B

123456789101112131415161718192021222324
  1. /**
  2. * This file has no copyright assigned and is placed in the Public Domain.
  3. * This file is part of the mingw-w64 runtime package.
  4. * No warranty is given; refer to the file DISCLAIMER.PD within this package.
  5. */
  6. #ifndef _INC_SETJMPEX
  7. #define _INC_SETJMPEX
  8. #ifndef _WIN32
  9. #error Only Win32 target is supported!
  10. #endif
  11. #if (defined(_X86_) && !defined(__x86_64))
  12. #define setjmp _setjmp
  13. #define longjmp _longjmpex
  14. #else
  15. #ifdef setjmp
  16. #undef setjmp
  17. #endif
  18. #define setjmp _setjmpex
  19. #endif
  20. #include <setjmp.h>
  21. #endif