提交 39e904c7 authored 作者: ziyuang's avatar ziyuang

Moved #include <algorithm> outside

Moved `#include <algorithm>` outside the `#if PY_MAJOR_VERSION >= 3` block.
上级 5609e40b
#ifndef _CUDA_NDARRAY_H #ifndef _CUDA_NDARRAY_H
#define _CUDA_NDARRAY_H #define _CUDA_NDARRAY_H
#include <algorithm>
// Defines for Python 2/3 compatibility. // Defines for Python 2/3 compatibility.
#if PY_MAJOR_VERSION >= 3 #if PY_MAJOR_VERSION >= 3
// Py3k treats all ints as longs. This one is not caught by npy_3kcompat.h. // Py3k treats all ints as longs. This one is not caught by npy_3kcompat.h.
#define PyNumber_Int PyNumber_Long #define PyNumber_Int PyNumber_Long
#include <algorithm>
#include "numpy/npy_3kcompat.h" #include "numpy/npy_3kcompat.h"
// Py3k strings are unicode, these mimic old functionality. // Py3k strings are unicode, these mimic old functionality.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论