Skip to content

Commit

Permalink
[svrplus] svrplus.c: _MAX_*TOSTR macros were introduced in either MSV…
Browse files Browse the repository at this point in the history
…C 2015 or 2017.

MSVC 2013 (which is what AppVeyor is currently set to use) doesn't have
these, so we'll have to define them ourselves.
  • Loading branch information
GerbilSoft committed Jan 13, 2020
1 parent 91cd531 commit 4544186
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/svrplus/svrplus.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,15 @@
// Application resources.
#include "resource.h"

// These were introduced in MSVC 2015 or 2017.
// AppVeyor is set to MSVC 2013, so it fails there.
#ifndef _MAX_ITOSTR_BASE10_COUNT
#define _MAX_ITOSTR_BASE10_COUNT (1 + 10 + 1)
#endif
#ifndef _MAX_ULTOSTR_BASE10_COUNT
#define _MAX_ULTOSTR_BASE10_COUNT (10 + 1)
#endif

/**
* Number of elements in an array.
* (from librpbase/common.h)
Expand Down

0 comments on commit 4544186

Please sign in to comment.