Skip to content

Commit 3613142

Browse files
hamparawastefanseefeld
authored andcommitted
Fixing compiling error 'error: ‘NPY_FLOAT16’ was not declared in this scope'
Signed-off-by: Saliya <hamparawa@gmail.com>
1 parent b2f53e1 commit 3613142

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/numpy/dtype.cpp

100644100755
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ BUILTIN_INT_DTYPE(8);
6262
BUILTIN_INT_DTYPE(16);
6363
BUILTIN_INT_DTYPE(32);
6464
BUILTIN_INT_DTYPE(64);
65+
#ifdef NPY_FLOAT16
6566
BUILTIN_FLOAT_DTYPE(16);
67+
#endif
6668
BUILTIN_FLOAT_DTYPE(32);
6769
BUILTIN_FLOAT_DTYPE(64);
6870
BUILTIN_COMPLEX_DTYPE(64);

0 commit comments

Comments
 (0)