Skip to content

Commit

Permalink
Undef small in qsieve.h
Browse files Browse the repository at this point in the history
The windows header `rpcndr.h` defines `small` as a macro, hence using this as a field name is incompatible unless one undefines it first.
  • Loading branch information
tobiasdiez authored Oct 27, 2024
1 parent 4352a58 commit 8ed328a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/qsieve.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
extern "C" {
#endif

/* Windows systems may define `small` macro, which leads to conflicts */
#undef small

#define QS_DEBUG 0 /* level of debug information printed, 0 = none */

#define BITS_ADJUST 25 /* add to sieve entries to compensate approximations */
Expand Down

0 comments on commit 8ed328a

Please sign in to comment.