diff options
author | AlexSm <alex@ydb.tech> | 2024-01-04 15:09:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-04 15:09:05 +0100 |
commit | dab291146f6cd7d35684e3a1150e5bb1c412982c (patch) | |
tree | 36ef35f6cacb6432845a4a33f940c95871036b32 /contrib/python/matplotlib/py2/src/_png.cpp | |
parent | 63660ad5e7512029fd0218e7a636580695a24e1f (diff) | |
download | ydb-dab291146f6cd7d35684e3a1150e5bb1c412982c.tar.gz |
Library import 5, delete go dependencies (#832)
* Library import 5, delete go dependencies
* Fix yt client
Diffstat (limited to 'contrib/python/matplotlib/py2/src/_png.cpp')
-rw-r--r-- | contrib/python/matplotlib/py2/src/_png.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/python/matplotlib/py2/src/_png.cpp b/contrib/python/matplotlib/py2/src/_png.cpp index 1dcbf713f2..ea7bf32efe 100644 --- a/contrib/python/matplotlib/py2/src/_png.cpp +++ b/contrib/python/matplotlib/py2/src/_png.cpp @@ -1,14 +1,11 @@ /* -*- mode: c++; c-basic-offset: 4 -*- */ -// this code is heavily adapted from the paint license, which is in -// the file paint.license (BSD compatible) included in this -// distribution. TODO, add license file to MANIFEST.in and CVS - /* For linux, png.h must be imported before Python.h because png.h needs to be the one to define setjmp. Undefining _POSIX_C_SOURCE and _XOPEN_SOURCE stops a couple of harmless warnings. */ +#define PY_SSIZE_T_CLEAN extern "C" { # include <png.h> @@ -139,6 +136,9 @@ const char *Py_write_png__doc__ = " Byte string containing the PNG content if None was passed in for\n" " file, otherwise None is returned.\n"; +// this code is heavily adapted from +// https://www.object-craft.com.au/projects/paint/ which licensed under the +// (BSD compatible) LICENSE_PAINT which is included in this distribution. static PyObject *Py_write_png(PyObject *self, PyObject *args, PyObject *kwds) { numpy::array_view<unsigned char, 3> buffer; |