diff --git a/tests/compile/callingconvention.srctree b/tests/compile/callingconvention.srctree index 6607619c456bf5e64346221001bae4e802d18e7c..b727477a5960010e4f1c9cb33c953005d786a38d 100644 --- a/tests/compile/callingconvention.srctree +++ b/tests/compile/callingconvention.srctree @@ -36,6 +36,11 @@ p3 = f3 p4 = f4 ######## external_callingconvention.h ######## + +#ifndef DL_IMPORT + #define DL_IMPORT(t) t +#endif + #ifdef __cplusplus extern "C" { #endif @@ -54,6 +59,11 @@ extern DL_IMPORT(int) (__fastcall *p4)(void); ######## external_callingconvention.c ######## #include <Python.h> +#ifndef DL_EXPORT + #define DL_EXPORT(t) t +#endif + + #if !defined(WIN32) && !defined(MS_WINDOWS) #ifndef __stdcall #define __stdcall diff --git a/tests/compile/declarations.srctree b/tests/compile/declarations.srctree index dc0c3cd71163b80099065c1d6a8f3d286b3a5779..4139c95fe8dfc7be27b26cbbaad34b51f5caed56 100644 --- a/tests/compile/declarations.srctree +++ b/tests/compile/declarations.srctree @@ -49,6 +49,11 @@ f() g() ######## external_declarations.h ######## + +#ifndef DL_IMPORT + #define DL_IMPORT(t) t +#endif + #ifdef __cplusplus extern "C" { #endif @@ -80,6 +85,10 @@ extern DL_IMPORT(int) a(int[][3], int[][3][5]); ######## external_declarations.c ######## #include <Python.h> +#ifndef DL_EXPORT + #define DL_EXPORT(t) t +#endif + DL_EXPORT(char) *cp; DL_EXPORT(char) *cpa[5]; DL_EXPORT(int) (*ifnpa[5])(void);