Mercurial > ~dholland > hg > tradcpp > index.cgi
comparison utils.h @ 183:4c3375895c6e
Don't use <stdbool.h> unless __STDC__ is large enough.
Works around Solaris's broken environment.
author | David A. Holland |
---|---|
date | Fri, 12 Jun 2015 03:28:19 -0400 (2015-06-12) |
parents | 4ea0ce804d22 |
children | 1d2bad7151f9 |
comparison
equal
deleted
inserted
replaced
182:f7814226906c | 183:4c3375895c6e |
---|---|
25 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | 25 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | 26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
27 * POSSIBILITY OF SUCH DAMAGE. | 27 * POSSIBILITY OF SUCH DAMAGE. |
28 */ | 28 */ |
29 | 29 |
30 #include <stdbool.h> | |
31 #include <stddef.h> | 30 #include <stddef.h> |
31 #include "bool.h" | |
32 | 32 |
33 struct place; | 33 struct place; |
34 | 34 |
35 #if defined(__CLANG__) || defined(__GNUC__) | 35 #if defined(__CLANG__) || defined(__GNUC__) |
36 #define PF(a, b) __attribute__((__format__(__printf__, a, b))) | 36 #define PF(a, b) __attribute__((__format__(__printf__, a, b))) |