Commits

Neal Norwitz  committed 50599bb

Move decl so it compiles with C89.

  • Participants
  • Parent commits 2195d1f

Comments (0)

Files changed (1)

File Python/importdl.c

 _PyImport_LoadDynamicModule(char *name, char *pathname, FILE *fp)
 {
 	PyObject *m;
+	PyObject *path;
 	char *lastdot, *shortname, *packagecontext, *oldcontext;
 	dl_funcptr p;
 
 		return NULL;
 	}
 	/* Remember the filename as the __file__ attribute */
-	PyObject *path;
 	path = PyUnicode_DecodeFSDefault(pathname);
 	if (PyModule_AddObject(m, "__file__", path) < 0)
 		PyErr_Clear(); /* Not important enough to report */