Skip to content

Commit

Permalink
BUG: old_defines.h needs a guard.
Browse files Browse the repository at this point in the history
  • Loading branch information
charris committed Apr 7, 2012
1 parent f047010 commit 032bcf0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions numpy/core/include/numpy/old_defines.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
/* This header is deprecated as of NumPy 1.7 */
#ifndef OLD_DEFINES_H
#define OLD_DEFINES_H

#if defined(NPY_NO_DEPRECATED_API) && NPY_NO_DEPRECATED_API >= NPY_1_7_API_VERSION
#error The header "old_defines.h" is deprecated as of NumPy 1.7.
#endif
Expand Down Expand Up @@ -180,3 +183,5 @@
#define PyArray_RemoveLargest PyArray_RemoveSmallest

#define PyArray_UCS4 npy_ucs4

#endif

0 comments on commit 032bcf0

Please sign in to comment.