Define "NOMINMAX" to ensure `<limits>` works.

See also: https://stackoverflow.com/questions/2561368/illegal-token-on-right-side-of

Resolves #149.

Signed-off-by: Tao He <sighingnow@gmail.com>
This commit is contained in:
Tao He 2022-08-17 11:34:28 +08:00
parent bd42e7129e
commit 89ae8a5ee4
3 changed files with 15 additions and 0 deletions

View File

@ -1,3 +1,8 @@
#if defined(_WIN32)
// see also: https://stackoverflow.com/questions/2561368/illegal-token-on-right-side-of
#define NOMINMAX
#endif
/* /*
* Catch v2.13.6 * Catch v2.13.6
* Generated: 2021-04-16 18:23:38.044268 * Generated: 2021-04-16 18:23:38.044268

View File

@ -1,3 +1,8 @@
#if defined(_WIN32)
// see also: https://stackoverflow.com/questions/2561368/illegal-token-on-right-side-of
#define NOMINMAX
#endif
#include <pplx/pplxtasks.h> #include <pplx/pplxtasks.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -1,3 +1,8 @@
#if defined(_WIN32)
// see also: https://stackoverflow.com/questions/2561368/illegal-token-on-right-side-of
#define NOMINMAX
#endif
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <sys/types.h> #include <sys/types.h>