summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2009-11-25 02:42:43 +0000
committerDavid Cournapeau <cournape@gmail.com>2009-11-25 02:42:43 +0000
commitec8c09aba8906f0f68a0661381af96fc43fc19e5 (patch)
tree7411a651499ac3d5cfce9a93c72281e8c6c69f3f
parent39da9239e0d47a773562e9223c868fbd0d1db3be (diff)
downloadnumpy-ec8c09aba8906f0f68a0661381af96fc43fc19e5.tar.gz
BUG: fix wrong declaration of _datetime_strings.
-rw-r--r--numpy/core/src/multiarray/descriptor.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/numpy/core/src/multiarray/descriptor.h b/numpy/core/src/multiarray/descriptor.h
index ef8582543..23ff58e97 100644
--- a/numpy/core/src/multiarray/descriptor.h
+++ b/numpy/core/src/multiarray/descriptor.h
@@ -10,6 +10,10 @@ array_set_typeDict(PyObject *NPY_UNUSED(ignored), PyObject *args);
NPY_NO_EXPORT PyArray_Descr *
_arraydescr_fromobj(PyObject *obj);
-extern char **_datetime_strings;
+#ifdef NPY_ENABLE_SEPARATE_COMPILATION
+extern NPY_NO_EXPORT char *_datetime_strings[];
+#else
+NPY_NO_EXPORT char *_datetime_strings[];
+#endif
#endif