| 1 |
#ifndef METAPOST_MPCONFIG_H |
| 2 |
#define METAPOST_MPCONFIG_H |
| 3 |
|
| 4 |
#include <stdint.h> |
| 5 |
|
| 6 |
/* For the moment distinct from integer64 but same type */ |
| 7 |
|
| 8 |
#if defined(WIN32) |
| 9 |
typedef __int64 mpinteger64; |
| 10 |
#else |
| 11 |
typedef int64_t mpinteger64; |
| 12 |
#endif |
| 13 |
|
| 14 |
|
| 15 |
/* In C23 true and false are keywords */ |
| 16 |
/* and the value of the macro __STDC_VERSION__ is 202311L */ |
| 17 |
#undef true |
| 18 |
#undef false |
| 19 |
#if !defined(__STDC_VERSION__) || (__STDC_VERSION__ <202311L) /* before C23 */ |
| 20 |
# define true 1 |
| 21 |
# define false 0 |
| 22 |
#endif |
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
#endif /* not METAPOST_MPCONFIG_H */ |