Skip to content

Commit

Permalink
WIP: don't include the RS parameters in platform-specific code
Browse files Browse the repository at this point in the history
  • Loading branch information
kspalaiologos committed Oct 14, 2024
1 parent 3eba6c8 commit e8d84b4
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions common.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,11 @@ typedef size_t sz;
// ============================================================================
// Reed-Solomon code parameters (223 bytes of input, 32 bytes of parity).
// ============================================================================
// K, N, T tend to be defined on some platforms for some reason. Fix that.
#undef K
#undef N
#undef T

#define K 223
#define N 255
#define T 32
// Some platform-specific code uses these extensively. Yuck.
#ifndef _PLATFORM_H_
#define K 223
#define N 255
#define T 32
#endif

#endif

0 comments on commit e8d84b4

Please sign in to comment.