| 1 |
/* |
| 2 |
# This file is part of the Astrometry.net suite. |
| 3 |
# Licensed under a 3-clause BSD style license - see LICENSE |
| 4 |
*/ |
| 5 |
|
| 6 |
#ifndef AN_BOOL_H |
| 7 |
#define AN_BOOL_H |
| 8 |
|
| 9 |
#ifdef _MSC_VER |
| 10 |
#if _MSC_VER >= 1600 |
| 11 |
#include <stdint.h> |
| 12 |
#else |
| 13 |
#include <stdint_msc.h> |
| 14 |
#endif |
| 15 |
#else |
| 16 |
#include <stdint.h> |
| 17 |
#endif |
| 18 |
|
| 19 |
#ifndef TRUE |
| 20 |
#define TRUE 1 |
| 21 |
#endif |
| 22 |
|
| 23 |
#ifndef FALSE |
| 24 |
#define FALSE 0 |
| 25 |
#endif |
| 26 |
|
| 27 |
// This helps unconfuse SWIG; it doesn't seem to like uint8_t |
| 28 |
typedef unsigned char anbool; |
| 29 |
|
| 30 |
#endif |