]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
On Windows, make PyErr_Warn an exported function again.
authorThomas Heller <theller@ctypes.org>
Fri, 4 Aug 2006 18:17:40 +0000 (18:17 +0000)
committerThomas Heller <theller@ctypes.org>
Fri, 4 Aug 2006 18:17:40 +0000 (18:17 +0000)
Misc/NEWS
Python/errors.c

index 5b7830968a6cd33dfa575cbc4186772799dd4aee..a6797f4b87937c020b9b028bc4b17ff1a6da275f 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -12,6 +12,9 @@ What's New in Python 2.5 release candidate 1?
 Core and builtins
 -----------------
 
+- On Windows, the PyErr_Warn function is now exported from
+  the Python dll again.
+
 - Bug #1191458: tracing over for loops now produces a line event
   on each iteration.  Fixing this problem required changing the .pyc
   magic number.  This means that .pyc files generated before 2.5c1
index 43d89bd9c8076c416e6110ee6f48a4c01528c5a5..7b7105104ad719c5c5d561636c559ca2ffea6014 100644 (file)
@@ -664,7 +664,7 @@ PyErr_WarnEx(PyObject *category, const char *message, Py_ssize_t stack_level)
 
 #undef PyErr_Warn
 
-int
+PyAPI_FUNC(int)
 PyErr_Warn(PyObject *category, char *message)
 {
        return PyErr_WarnEx(category, message, 1);