Skip to content

Commit

Permalink
- Fix non-Windows and non-MSVC builds due to missing header for `stru…
Browse files Browse the repository at this point in the history
…pr()`.
  • Loading branch information
mjr4077au committed Jul 25, 2021
1 parent 7702b3b commit 2217dcb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions source/games/blood/src/nnexts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

#ifdef NOONE_EXTENSIONS
#include <random>

#if !defined(_WIN32) && !defined(_MSC_VER)
#include <string.h>
#endif

#include "blood.h"
#include "savegamehelp.h"

Expand Down

2 comments on commit 2217dcb

@alexey-lysiuk
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not about missing header, but about usage of non-standard strupr() function.

@mjr4077au
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not about missing header, but about usage of non-standard strupr() function.

I thought it was in string.h, sorry. I'll just revert and replace all this with an FString object.

Please sign in to comment.