Skip to content

Commit

Permalink
fix setjmp in irfanview plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyakurdyukov authored Jan 29, 2024
1 parent b450599 commit 7b7b0e1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion irfanview/plugin.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2020 Ilya Kurdyukov
* Copyright (C) 2024 Ilya Kurdyukov
*
* JPEG reader plugin for IrfanView
*/
Expand All @@ -9,6 +9,11 @@
#include <string.h>
#include <stdint.h>
#include <setjmp.h>
#if defined(__GNUC__) && defined(__x86_64__)
int __cdecl __attribute__ ((__nothrow__,__returns_twice__)) _setjmpex(jmp_buf,void*);
#undef setjmp
#define setjmp(buf) _setjmpex(buf, NULL)
#endif
#include "jpeglib.h"

#define WIN32_LEAN_AND_MEAN
Expand Down

0 comments on commit 7b7b0e1

Please sign in to comment.