restructure nlr.h for udefined archtectures
This commit is contained in:
parent
1a53ced167
commit
051670038e
7
py/nlr.h
7
py/nlr.h
@ -36,7 +36,6 @@
|
||||
|
||||
// If MICROPY_NLR_SETJMP is not enabled then auto-detect the machine arch
|
||||
#if !defined(MICROPY_NLR_SETJMP) || !MICROPY_NLR_SETJMP
|
||||
#define MICROPY_NLR_SETJMP (0)
|
||||
// A lot of nlr-related things need different treatment on Windows
|
||||
#if defined(_WIN32) || defined(__CYGWIN__)
|
||||
#define MICROPY_NLR_OS_WINDOWS 1
|
||||
@ -65,6 +64,12 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// If MICROPY_NLR_SETJMP is not defined above - define/disable it here
|
||||
|
||||
#if !defined(MICROPY_NLR_SETJMP)
|
||||
#define MICROPY_NLR_SETJMP (0)
|
||||
#endif
|
||||
|
||||
#if MICROPY_NLR_SETJMP
|
||||
#include <setjmp.h>
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user