diff options
author | David Cournapeau <cournape@gmail.com> | 2009-11-25 02:27:30 +0000 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2009-11-25 02:27:30 +0000 |
commit | 39da9239e0d47a773562e9223c868fbd0d1db3be (patch) | |
tree | 227cde85c55fc9f93b14fd78323eb312e9b0628d /numpy | |
parent | eeed9facb8574411a4e9355f792f2641d2c59559 (diff) | |
download | numpy-39da9239e0d47a773562e9223c868fbd0d1db3be.tar.gz |
BUG: declare _datetime_strings and mark its definition as a private symbol so that separate compilation works.
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/core/src/multiarray/descriptor.c | 2 | ||||
-rw-r--r-- | numpy/core/src/multiarray/descriptor.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/numpy/core/src/multiarray/descriptor.c b/numpy/core/src/multiarray/descriptor.c index 664ed94c9..a1c2d74e0 100644 --- a/numpy/core/src/multiarray/descriptor.c +++ b/numpy/core/src/multiarray/descriptor.c @@ -469,7 +469,7 @@ _convert_from_list(PyObject *obj, int align) } /* Exported as DATETIMEUNITS in multiarraymodule.c */ -static char *_datetime_strings[] = { +NPY_NO_EXPORT char *_datetime_strings[] = { NPY_STR_Y, NPY_STR_M, NPY_STR_W, diff --git a/numpy/core/src/multiarray/descriptor.h b/numpy/core/src/multiarray/descriptor.h index 2f8e38347..ef8582543 100644 --- a/numpy/core/src/multiarray/descriptor.h +++ b/numpy/core/src/multiarray/descriptor.h @@ -10,4 +10,6 @@ array_set_typeDict(PyObject *NPY_UNUSED(ignored), PyObject *args); NPY_NO_EXPORT PyArray_Descr * _arraydescr_fromobj(PyObject *obj); +extern char **_datetime_strings; + #endif |