Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The MSVC compiler is extremely picky when it comes to assigning const values. Whereas GCC will allow you to add two `const` variables, MSVC will not let you use any input variables when assigning to a global const. Work around this by using the C preprocessor to define `MAX_PORT` that includes a CPP definition of `DEFAULT_PORT`, then combine these two to assign to `max_port`. This fixes the build under MSVC. Signed-off-by: Sean Cross <[email protected]>
- Loading branch information