Kaydet (Commit) b221ac4f authored tarafından Guido van Rossum's avatar Guido van Rossum

Define DL_IMPORT if necessary.

Include pydebug.h instead of declaring Py_FatalError.
üst dd197e91
...@@ -34,6 +34,11 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ...@@ -34,6 +34,11 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include "config.h" #include "config.h"
#endif #endif
/* config.h may or may not define DL_IMPORT */
#ifndef DL_IMPORT /* declarations for DLL import/export */
#define DL_IMPORT(RTYPE) RTYPE
#endif
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
...@@ -49,7 +54,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ...@@ -49,7 +54,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include "myproto.h" #include "myproto.h"
#include "mymalloc.h" #include "mymalloc.h"
extern void Py_FatalError Py_PROTO((char *)); #include "pydebug.h"
#ifdef __cplusplus #ifdef __cplusplus
} }
......
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