Skip to content

Commit f05415c

Browse files
committed
Fix restrict keyword
1 parent 20b2e5b commit f05415c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

include/pyoptinterface/nlcore.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,9 +362,8 @@ struct LinearQuadraticModel
362362
Hashmap<VariablePair, size_t> &m_hessian_index_map,
363363
HessianSparsityType hessian_sparsity_type);
364364

365-
#ifdef _MSC_VER
366365
#define restrict __restrict
367-
#endif
366+
368367
void eval_objective(const double *restrict x, double *restrict y);
369368

370369
void eval_objective_gradient(const double *restrict x, double *restrict grad);

0 commit comments

Comments
 (0)