Commit 7be09b01 authored by Mark Florisson's avatar Mark Florisson

Fix declarations and callingconvention test of py3k

parent d82d4fc3
...@@ -36,6 +36,11 @@ p3 = f3 ...@@ -36,6 +36,11 @@ p3 = f3
p4 = f4 p4 = f4
######## external_callingconvention.h ######## ######## external_callingconvention.h ########
#ifndef DL_IMPORT
#define DL_IMPORT(t) t
#endif
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
...@@ -54,6 +59,11 @@ extern DL_IMPORT(int) (__fastcall *p4)(void); ...@@ -54,6 +59,11 @@ extern DL_IMPORT(int) (__fastcall *p4)(void);
######## external_callingconvention.c ######## ######## external_callingconvention.c ########
#include <Python.h> #include <Python.h>
#ifndef DL_EXPORT
#define DL_EXPORT(t) t
#endif
#if !defined(WIN32) && !defined(MS_WINDOWS) #if !defined(WIN32) && !defined(MS_WINDOWS)
#ifndef __stdcall #ifndef __stdcall
#define __stdcall #define __stdcall
......
...@@ -49,6 +49,11 @@ f() ...@@ -49,6 +49,11 @@ f()
g() g()
######## external_declarations.h ######## ######## external_declarations.h ########
#ifndef DL_IMPORT
#define DL_IMPORT(t) t
#endif
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
...@@ -80,6 +85,10 @@ extern DL_IMPORT(int) a(int[][3], int[][3][5]); ...@@ -80,6 +85,10 @@ extern DL_IMPORT(int) a(int[][3], int[][3][5]);
######## external_declarations.c ######## ######## external_declarations.c ########
#include <Python.h> #include <Python.h>
#ifndef DL_EXPORT
#define DL_EXPORT(t) t
#endif
DL_EXPORT(char) *cp; DL_EXPORT(char) *cp;
DL_EXPORT(char) *cpa[5]; DL_EXPORT(char) *cpa[5];
DL_EXPORT(int) (*ifnpa[5])(void); DL_EXPORT(int) (*ifnpa[5])(void);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment